Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: Losing Bits with Pack/Unpackby kikuchiyo (Hermit) |
on Sep 17, 2020 at 15:51 UTC ( [id://11121876]=note: print w/replies, xml ) | Need Help?? |
I doubt there are any simple solutions with just pack and unpack. Most of the complexity of the base2048 implementation I've linked comes from paying attention to Twitter's rules about what it considers a "text" or "CJK" or "sendable" character. Perl's comprehensive Unicode support (character classes in regexes etc.) might be useful, if you were to rewrite the thing in it.
In Section
Seekers of Perl Wisdom
|
|