Fri Feb 25 17:55:54 CET 2005
I'm not sure if this is the correct way to do it, but it works.
And to decode it
<<Bin:3/binary>> = Binary,
If there's a better way to do it, I would like to know it too.
----- Original Message -----
From: "Mats Cronqvist" <>
Sent: Friday, February 25, 2005 2:23 PM
Subject: binary constructor
> so i read this in the reference manual
> Ei = Value |
> Value:Size |
> Value/TypeSpecifierList |
> used in a binary construction, Value is an expression which should evaluate to
> an integer, float or string. If the expression is something else than a single
> literal or variable, it should be enclosed in parenthesis.
> this leads me to believe i should be able to do this;
> A = "123",
> alas, i get a badarg.
> can somone please point out my mistake?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions