in reply to Re^4: HowTo unpack a vec (bitstring)
in thread HowTo unpack a vec (bitstring)
that's will output a null byte, followed by the next byte interpreted as a single unsigned char value. I.e. the numeric value of that byte as a perl number.unpack("x1 C1", $bitstring);
Will output a null byte followed by the next byte AS AN ASCII CHAR. In other words, pass the byte through basically unmodified.unpack("x1 A1", $bitstring);
Note that unpack returns a LIST of values.
|
|---|