I can’t understand why this doesn’t work:
-module(hello).
-export([hello_world/0]).
hello_world() -> io:fwrite("hello, world\n").
(hello_world@PC)8> hello:hello_world().
** exception error: undefined function hello:hello_world/0
(hello_world@PC)9>
Have you compiled your source code? Type
c(hello).in Eshell (assuming thathello.erlis the name of the source file) before calling the function.