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

emilford has asked for the wisdom of the Perl Monks concerning the following question:

Open the file in Notepad and it's flooded with little squares. I'm using Perl on the Unix side to generate a txt file that is then downloaded on a Windows box. Most every application recognizes the line ends, but I'm still having difficulty with Notepad.

I've read through many of the threads on this, but am still not certain what to do. I've tried to swap \n for \r\n, but no luck. I tried to swap \n for \cM, but still no luck.

What else should I try?