![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^6: pack/unpack 6-bit fields. (insanity)by tye (Sage) |
on Aug 18, 2004 at 21:55 UTC ( #384125=note: print w/replies, xml ) | Need Help?? |
My numbers look correct to me.
You show code containing 'B*' but the bits that you show are from using 'b*'. That is why you can match the 'b*' case against it. Trying to match the 'B*' against that string gives one of the less-sane results I mentioned (where the bit orders are mismatched). To be extra clear, using 'B*' would result in each group of 8 bits being reversed (it doesn't reverse the whole bit string), which results in different 6-bit chunks not just reversed 6-bit chunks (so neither of your cases cover it). - tye
In Section
Seekers of Perl Wisdom
|
|