in reply to Re^2: Problems Uploadng a filein thread Problems Uploadng a file
set $fh and OUTF to binary mode by putting this: binmode($fh); binmode(OUTF); before the while statement.
binmode() a Perl function - read more here: binmode.