title: create a Scala script file in Eclipse
body: <p>I am playing with Scala. What I need is just a brunch of function definitions, but in Eclipse I can only create <code>.scala</code> files for which a function <code>def</code> must be inside an object or class. </p>
  
  <p>But I see a Scala script online, <a href="http://jcranky.com/2011/01/12/a-scala-script-for-processing-files/" rel="nofollow">here</a>, which does not use an object to wrap all the functions. </p>
  
  <p>It is of course ok for me to use an object to wrap all my functions, but I am just wondering whether it is required. Thanks!</p>