Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I cannot get a result from a single line put into the Erlang shell

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?

like image 756
Joe Avatar asked Oct 31 '10 00:10

Joe


People also ask

How do I get to Erlang shell?

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.

How to quit Erlang shell?

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.

Which of the following is the correct syntax to define a function in the Erlang shell?

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.


1 Answers

You must type : 20+30. Don't forgot DOT. Hope i can help you.... :D

like image 89
dz1984 Avatar answered Oct 16 '22 17:10

dz1984