in reply to zlib compression of numeric values
a little endian 4 byte integer ismy $justanull = "\x00";
Perl has absolutely no problems in dealing with binary data aslong as you dont turn on utf8 mode for that scalar. & ^ and | work with "ascii" printable scalar integers, not on bytes or bits. After using &/^/|, you need to use pack to get it into binary. Perl historically is excellent in dealing with binary.$not_ascii = pack('V', 1); #or $not_ascii = pack('V', "1"); #$not_ascii should not be printed to console, it looks gibberish as as +cii
|
|---|