in reply to how to unpack a C struct with length array preceding data array
The link should be to perlpacktut, to the Packing and Unpacking C Structures section.