in reply to Re: \r\n at end of line
in thread \r\n at end of line

A :crlf layer is used by default on Windows, converting CRLF to LF on read and vice-versa on write. Therefore, $/ is "\n" on Windows too.