Thank you, Kirsle! We were unable to display the table until your tip to use Dumper, and the output confirms your explanation of the $size value selecting the index from the anonymous array to use for the unpack template.
Things seem so simple - once you understand them...
Perl rocks.
I'm new to Perl and already seeing how powerful this language is. I need help understanding the following unpack command:
@data = unpack(["","C*","n*","(H6)*",*N*"]->[$size], $table);
Here's what I know:
- unpack is unpacking $table into the array data
- unpack is using the template...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.