No such thing as a small change | |
PerlMonks |
Re: Missing byte using unpack, pack, read(in terms of bytes)by Corion (Patriarch) |
on Jul 23, 2012 at 22:10 UTC ( [id://983245]=note: print w/replies, xml ) | Need Help?? |
You don't show how you open the file, and you don't tell us the platform you're using. If you are on Windows, my guess is that you forgot to use binmode on the file, and newline translation is hitting you. If that guess is wrong, then please show a short, self-contained program that reproduces the problem, and also tell us the version of Perl you're using.
In Section
Seekers of Perl Wisdom
|
|