Thank you! I'd read that binmode wasn't needed on *nix systems -- apparently, I over interpreted what I read. Seems that what I needed was a combination of undef $/; and binmode(INFILE); and then $plaintext = <INFILE>. Binmode was
also needed for the output file.
thank you, thank you, thank, you!
j.
| [reply] |
Hmm, binmode should not be needed on Linux (or Unix.) From perldoc -f binmode:
Arranges for FILEHANDLE to be read or written in "binary"
or "text" mode on systems where the run-time libraries
distinguish between binary and text files..
But the libraries on Unix-like systems make no such distinction. I'm guessing that the measures you took worked around the bug I mentioned below.
"Even if you are on the right track, you'll get run over if you just sit there." - Will Rogers
| [reply] [d/l] |
| [reply] |