This content originally appeared on DEV Community and was authored by seng
A popular program for Erlang beginners is "Hello, World". We can write the following code and save it in a file called hello.erl:
-module(hello).
-export([start/0]).
start() ->io:format("Hello, World!~n").
Then, we can open the Erlang Shell, where we can write and run small amounts of Erlang code. Enter the following commands to run the Hello World program:
% Compile the module
c(hello).
% Run the function
hello:start().
This content originally appeared on DEV Community and was authored by seng

seng | Sciencx (2025-10-14T09:41:10+00:00) learning Erlang step by step[1]. Retrieved from https://www.scien.cx/2025/10/14/learning-erlang-step-by-step1/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.