I typed erl
to start the erlang shell (Eshell V5.7.4). The shell starts. But, if I type some expression in the shell like say 20+30 and hit enter I’m back to 1>, and the result of the expression is not shown.
What could be causing this problem?
On a Unix system you enter the command erl at the operating system prompt. This command starts the Erlang runtime system and the Erlang shell. On the Windows platform you normally start Erlang/OTP from the start menu. You can also enter the command erl or werl from a DOS box or Command box.
4.4 How do I quit the Erlang shell? To shut a system down cleanly, use init:stop(). Some quick ways are evaluating halt(). or Control+\. Control+C and Control+G give you access to menus.
Syntax − f(). For example − Following is an example of how the function is used. First a variable called Str is defined which has the value abcd.
You must type : 20+30.
Don't forgot DOT.
Hope i can help you.... :D
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With