in reply to Missing byte using unpack, pack, read(in terms of bytes)
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Missing byte using unpack, pack, read(in terms of bytes)
by joemaniaci (Sexton) on Jul 23, 2012 at 22:27 UTC | |
by RichardK (Parson) on Jul 23, 2012 at 22:46 UTC | |
by joemaniaci (Sexton) on Jul 23, 2012 at 22:50 UTC |