I thought I remember reading somewhere that binmode was just needed for Windows systems and not Unix ones. I have tested the script on smaller (< 70kb) txt, doc, and pdf files and everything works fine. When I try to upload the 1.8MB pdf file is when I get the error. I'll try your suggestion. Thanks.
With the new input disciplines, utf8 and whatnot in Perl 5.8 even Unixers should get used to binmode(). (And I should reread the docs to be able to tell what exactly happens if they don't.)
Jenda Always code as if the guy who ends up maintaining your code
will be a violent psychopath who knows where you live.
-- Rick Osborne