in reply to Difference between using \r\n and \n on Linux and Windows machines
So, if you insert a "\r" character yourself, you will end up with two because perl inserts one itself next to the "\n". So don't do that.
p.s. If you want to create a Unix text file on Windows, you can do
before you print anything to it, and this conversion is prevented, you'll get an identical result on Windows as on Linux.binmode FH;
|
|---|