in reply to Re: yet another "reading binary data" question
in thread yet another "reading binary data" question

my $format = "v$x n$y n C$z ".("Z$len" x $n); my $recsize = 2*$x + 2*$y + 2 + $z + ($n*$len);
Shouldn't it be $format = "V$x ..." and $recsize = 4*$x + ... ?

Replies are listed 'Best First'.
Re^3: yet another "reading binary data" question
by pc88mxer (Vicar) on May 07, 2008 at 23:02 UTC
    Yeah, you're right - got too preoccupied with the shorts and forgot about the longs.