In Erlang, you can test most of your code in an emulator. It will run your scripts when they are compiled and deployed, but it will also let you edit stuff live.
In this chapter, you’ll learn how to use the Erlang shell and be introduced to some basic Erlang data types.
To start the Erlang shell in a Linux or Mac OS X system, open a terminal, and then type
erl. If you’ve set up everything correctly, you should see something like this:
erlErlang R15B (erts-5.9) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false] Eshell V5.9 (abort with ^G)
Congratulations, you’re running the Erlang shell!
If you’re a Windows user, you can run the shell by executing erl.exe at the command prompt, but ...