in reply to File upload losing newlines

If this is a text file, you shouldn't be using binmode, it's for binary files only. What I guess is happening is that the "client" and "server" are different architectures with differeing ideas of line endings. With binmode no line-ending translation is done. Without binmode, line-endings are translated to the native line-ending of the receiving end.

Replies are listed 'Best First'.
Re: Re: File upload losing newlines
by bradcathey (Prior) on Apr 24, 2004 at 22:08 UTC
    Thanks duff, I'll pull that line out. I wondered about that one...

    —Brad
    "A little yeast leavens the whole dough."