Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Run length encode a bit vectorby ikegami (Patriarch) |
on Jan 05, 2012 at 19:28 UTC ( [id://946462]=note: print w/replies, xml ) | Need Help?? |
The parent could use B* instead of B32. Methods that rely on unpack('B*', $bytes) can even handle arbitrary long packed string if they are packed in "network" (big endian) order.
(By the way, the == 1 is superfluous in the parent's code.)
In Section
Seekers of Perl Wisdom
|
|