Hi folks,<br><br>My simple program below gives an error on exit. Any idea what is wrong? Thanks.<br><br>Dave<br><br>---<br><br>$ cat inp.erl<br>-module(inp).<br>-compile(export_all).<br><br>start() -><br> spawn(fun() -> one_line() end).<br>
<br>one_line() -><br> case io:get_line("") of<br> Str -> lib:nonl(Str)<br> end.<br>$ erlc inp.erl<br>$ erl -noshell -s inp start -s init stop<br>{error_logger,{{2008,12,8},{21,39,50}},"~s~n",["Error in process <0.28.0> with exit value: {badarg,[{code_server,call,2},{error_handler,undefined_function,3}]}\n"]}<br>
$ port info erlang | head -1<br>erlang R12B-5, lang/erlang (Variants: universal, smp, ssl, hipe, i386)<br><br>