Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: how to unpack a C struct with length array preceding data array

by AnomalousMonk (Abbot)
on May 28, 2013 at 04:25 UTC ( #1035514=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -wMstrict -MData::Dump -le
    "my $str = qq{\x05\x00\x08\x00\x05\x00\x06\x00Just Another pack Hacker
    +};
    ...
     dd \@ra;
    "
    [5, 8, 5, 6, "Just ", "Another ", "pack ", "Hacker"]
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-11-28 21:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (200 votes), past polls