http://www.perlmonks.org?node_id=511137


in reply to Notepad: I'm seeing squares.

You've got a bad assumption somewhere. "\r\n" on a unix-y perl will positively give you valid DOS carriage control. Open your file with a hex editor and you'll see something other than hex "0d0a" there for sure. That's the best way to shoot your problem.