|
If you are running a unix system type "erl" or, if you are running on windows-95 or NT start Erlang by clicking on the Erlang start icon. You should see something like this:
The ">" prompt means the system is waiting for input.
Remember to terminate every expression with a DOT followed by a whitespace!
Previous expressions can be retrieved and edited using simple emacs line editing commands. The most common of these are:
Note: ^X means press Control + X Try typing Control+P to see what happens.
Type the following into a file using your favorite text editor:
Store this in a file called test.erl The file name must be the same as the module name. Compile the program by typing c(test) then run it:
Now go and write some games!
|
||||||||||||
| Last updated 2007-12-07 14:03 UTC | |||||||||||||