in reply to Re^3: Unpack Fail to Decompress String?
in thread Unpack Fail to Decompress String?
With a trailing full length, the last comes first and the first last, with those in the middle keeping their correct relative orderingSo, don't use the actual length, use length mod 4.
input | packed |
---|---|
ACGT | 1b 00 |
ACGTA | 1b 01 |
ACGTAA | 1b 02 |
ACGTAAA | 1b 03 |
ACGTAAAA | 1b 00 00 |
ACGTAAAAA | 1b 00 01 |
In Section
Seekers of Perl Wisdom