The OP needs to match his pack/unpack template to the data, not the other way around. If anything, he might want to consider 'n' vs 'v' vs 'S'.
In reply to Re^3: Write 2 uint16_t numbers to file in Perl
by Anonymous Monk
in thread Write 2 uint16_t numbers to file in Perl
by BrianP
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |