[erlang-questions] string in << >>

Rapsey rapsey@REDACTED
Thu Dec 3 11:22:47 CET 2009


list_to_binary(X)


Sergej

2009/12/3 Jakub Zawierucha <Jakub.Zawierucha@REDACTED>

> Hello,
>
> How can I put string into binary form ? Below you can find description on
> my problem.
>
> 49> f().
> ok
> 50> X = "dupa".
> "dupa"
> 51> <<"dupa", 3:2>>.
> <<100,117,112,97,3:2>>
> 52> <<X, 3:2>>.
> ** exception error: bad argument
>
> Thanks,
> Jakub Zawierucha
>
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org
>
>


More information about the erlang-questions mailing list