in reply to Re: HowTo unpack a vec (bitstring)
in thread HowTo unpack a vec (bitstring)

Ok, I made the following changes:
vec ($bitstring, $offset++,8) = $_ ;
So now I can do
my $bits = unpack("x1 C1", $bitstring);
However I cannot do
my $bits = unpack("x1 A1", $bitstring);
So why is it not possible to extract an integer as an ASCII character ?

LuCa

Replies are listed 'Best First'.
Re^3: HowTo unpack a vec (bitstring)
by Joost (Canon) on Jun 19, 2006 at 09:40 UTC
      I still don't understand, if it is possible, my above example should extract the numbers, right ?