mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-19 03:25:44 +00:00
12 lines
248 B
Plaintext
12 lines
248 B
Plaintext
|
% to install:
|
||
|
% sudo apt-get install erlang-ic
|
||
|
% to compile:
|
||
|
% erlc helloworld.erl
|
||
|
% to run:
|
||
|
% erl -noshell -s helloworld hello_world -s init stop
|
||
|
|
||
|
-module(helloworld).
|
||
|
-export([hello_world/0]).
|
||
|
|
||
|
hello_world() -> io:fwrite("hello, world\n").
|