[erlang-questions] Line Receiver example?

Jarrod Roberson jarrod@REDACTED
Mon Apr 27 22:29:06 CEST 2009


On Mon, Apr 27, 2009 at 3:59 PM, Per Melin <per.melin@REDACTED> wrote:

> Jarrod Roberson:
> >  io:format("Received Line:~p~n", binary_to_list(Bin)),
>
> This line is broken. Your process crashes. Do this:
>
> io:format("Received Line:~p~n", [binary_to_list(Bin)]),
>

just for future knowledge why are the [] required around the list?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090427/0c527412/attachment.htm>


More information about the erlang-questions mailing list