<table cellspacing='0' cellpadding='0' border='0' background='none' style='font-family:arial;font-size:10pt;color:rgb(51, 51, 51);background-color:rgb(255, 255, 255);width:100%;'><tr><td valign='top' style='font: inherit;'>-module(tut).<br>-export([double/1]).<br><br>double(X) -><br>    2 * X.<br><br>saved that in tut.erl, placed it in the bin/ and tried to run it but it asks for a specific program to run.<br><br>Erlang (BEAM) emulator version 5.6.2 [async-threads:0]<br><br>Eshell V5.6.2  (abort with ^G)<br>1> c(tut).<br>./tut.erl:none: no such file or directory<br>error<br>2> <br><br>so which install do i need?<br><br><br>how do i define a function?<br><br>can i do that directlyin the shell?<br><br>like in python:<br>def sq(x): return x*x<br><br>how would i dot hat in erlang?<br></td></tr></table><br>
      <hr size=1><table><tr><td>Sök efter kärleken! <br>Hitta din tvillingsjäl på Yahoo! Dejting: <a href="http://ad.doubleclick.net/clk;185753627;24584539;x?http://se..meetic.yahoo.net/index.php?mtcmk=148783">http://se.meetic.yahoo.net</a></td></tr></table>