Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by AnomalousMonk (Archbishop)
on May 28, 2013 at 04:25 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1035514]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (8)
As of 2024-04-19 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found