September 2013
Intermediate to advanced
548 pages
12h 25m
English
Erlang programs are built from a number of parallel processes.
Processes evaluate functions that are defined in
modules. Modules are files with the extension .erl and
must be compiled before they can be run. Having compiled a
module, we can evaluate the functions in the module from the
shell or directly from the command line in an operating system
environment.
In the next sections, we’ll look at compiling modules and evaluating functions in the shell and from the OS command line.
Make a file called hello.erl with the following content:
| hello.erl | |
| | -module(hello). |
| | -export([start/0]). |
| | |
| | start() -> |
| | io:format("Hello world~n"). |
To compile and run this, ...
Read now
Unlock full access