Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by AnomalousMonk (Canon)
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 exploiting the Monastery: (4)
As of 2016-06-26 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (330 votes). Check out past polls.