in reply to Re^2: Write 2 uint16_t numbers to file in Perl
in thread Write 2 uint16_t numbers to file in Perl

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'.

  • Comment on Re^3: Write 2 uint16_t numbers to file in Perl