Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Perl Zlib last block

by choroba (Archbishop)
on Oct 26, 2020 at 11:39 UTC ( #11123178=note: print w/replies, xml ) Need Help??


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]

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11123178]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2020-12-04 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (58 votes). Check out past polls.

    Notices?