Just another Perl shrine | |
PerlMonks |
Re^5: Need help with (un)pack templatesby gmargo (Hermit) |
on Dec 20, 2009 at 14:39 UTC ( [id://813629]=note: print w/replies, xml ) | Need Help?? |
It's pretty well spelled out in the pack documentation. C for unsigned char (byte), n for unsigned 16-bit short in network order, N for 32-bit long in network order, a for "arbitrary binary data". Don't be confused by the 32-bit CCCC's, since an IP address is 4 8-bit numbers, not a 32-bit number.
In Section
Seekers of Perl Wisdom
|
|