learning Erlang step by step[1]

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 Erlan…


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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » learning Erlang step by step[1]." seng | Sciencx - Tuesday October 14, 2025, https://www.scien.cx/2025/10/14/learning-erlang-step-by-step1/
HARVARD
seng | Sciencx Tuesday October 14, 2025 » learning Erlang step by step[1]., viewed ,<https://www.scien.cx/2025/10/14/learning-erlang-step-by-step1/>
VANCOUVER
seng | Sciencx - » learning Erlang step by step[1]. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/10/14/learning-erlang-step-by-step1/
CHICAGO
" » learning Erlang step by step[1]." seng | Sciencx - Accessed . https://www.scien.cx/2025/10/14/learning-erlang-step-by-step1/
IEEE
" » learning Erlang step by step[1]." seng | Sciencx [Online]. Available: https://www.scien.cx/2025/10/14/learning-erlang-step-by-step1/. [Accessed: ]
rf:citation
» learning Erlang step by step[1] | seng | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.