http://qs321.pair.com?node_id=11123178


in reply to Perl Zlib last block

To get ffff, don't ask for 4 nibbles, but 2:
$output =~ s/(.)/sprintf '%02x', ord $1/seg; # ^

You can also use

$output = unpack 'H*', $output;

instead of the s/// with /e. It should be faster.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]