in reply to \r\n at end of line
(Does Perl remove a plain "\n" in Windows? If so, I'm surprised, since $/ isn't a regexp.)