[erlang-questions] binary bad match error(how to get a dynamic width string from a binary body?)

Vlad Dumitrescu vladdu55@REDACTED
Mon Mar 24 10:00:26 CET 2008


Hi,

On Mon, Mar 24, 2008 at 6:58 AM, wenew zhang <wenewboy@REDACTED> wrote:
>     <<Str:Len,Rest/binary>> = Bin1,%% i want get the user name by

Try
     <<Str:Len/binary,Rest/binary>> = Bin1,

regards,
Vlad



More information about the erlang-questions mailing list