Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Perlish approach to parsing a binary blob

by BrowserUk (Pope)
on Apr 09, 2018 at 12:37 UTC ( #1212582=note: print w/replies, xml ) Need Help??

in reply to Perlish approach to parsing a binary blob

Combine both statements:

#!/usr/bin/env perl use strict; use warnings; use Data::Dump qw[ pp ]; my $data = "1ABCD2EFGH3IJKL4MNOP5QRST6UVWX"; my $entry_size = 5; my @out = map[ unpack 'CA*', $_ ], unpack "(A$entry_size)*", $data; pp \@out;

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2020-09-30 01:08 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (156 votes). Check out past polls.