in reply to binmode, CR, LF

As in:    use DownWithCRLF; Although I might have a few details wrong, the CR+LF combo dates back to the old teletypes used for telegrams which required separate characters to advance the page (line feed) and to reset the print-head (carriage return). Why DOS picked up on this specifically is odd, but then it was probably the guy at Seattle Computer Products and not Bill Gates who made this call.

Anyway, I think binmode is the best call. #1 and #2 don't actually solve the problem, do they?