Title here
Summary here
Our first program will print the classic “hello world” message. Here’s the full source code.
To run the program, put the code in hello_world.erl
and use erl
to compile and run it.
Sometimes we’ll want to build our programs into binaries. This can be done using escript
.
First, create an hello_world
escript file:
Make the escript executable and run it:
Now that we can run and build basic Erlang programs, let’s learn more about the language.