good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: pack/unpack 6-bit fields. (insanity)by tye (Sage) |
on Aug 18, 2004 at 16:03 UTC ( [id://384019]=note: print w/replies, xml ) | Need Help?? |
Thanks. I keep forgetting how broken un/pack are in this respect. Having "B6" load the high six bits (of the low byte of the integer) is just non-sensical. So for the most sane configuration (bits split based on base-2 representation not some "ascending bit order" representation) you have to work harder:
outputs:
- tye
In Section
Seekers of Perl Wisdom
|
|