2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-19 03:25:44 +00:00
cheat.sheets/sheets/_erlang/hello

12 lines
248 B
Plaintext
Raw Normal View History

2017-06-15 18:58:23 +00:00
% 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").