in reply to Windows and UNIX end of line characters

Unless you tell it otherwise, Perl adds a :crlf to file handles on Windows, causing CRLF to be converted to LF automatically on read, and vice-versa on write.

binmode($fh) will disable the :crlf layer.

  • Comment on Re: Windows and UNIX end of line characters