binmode(OUTFILE) will cause all subsequent reads or writes to and from OUTFILE to be in binary mode. Depending on your system, this may or may not have any effect.
Check chapter 8 of the Perl Cookbook if you have it handy, or perlfunc
Comment on Re: Re: (jcwren) RE: Re: Uploading a file