how to unpack a C struct with length array preceding data arrayby johnlumby (Initiate)
|on May 22, 2013 at 19:28 UTC||Need Help??|
johnlumby has asked for the
wisdom of the Perl Monks concerning the following question:
my perl app receives a buffer containing this format
I have tried and tried to unpack this into 4 perl variables in a single unpack() call and failed. I had to resort to two unpack()'s, the first to extract the lengths followed by something like
which works fine, but can some kind Monk tell me how to do this in one unpack.