evgen-i has asked for the wisdom of the Perl Monks concerning the following question:
my Perl script runs on Windows via Strawberry Perl and writes output to a file. All lines it prints end with "\n". When I open the output file, however, I see that the the Windows carriage returns "\r\n" were written instead. Is there a way I can force the script to write Unix newlines "\n" only?
Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to print Unix newlines in Strawberry Perl on Windows
by BrowserUk (Patriarch) on Feb 20, 2013 at 12:42 UTC | |
|
Re: How to print Unix newlines in Strawberry Perl on Windows
by karlgoethebier (Abbot) on Feb 20, 2013 at 14:28 UTC | |
|
Re: How to print Unix newlines in Strawberry Perl on Windows
by vinoth.ree (Monsignor) on Feb 20, 2013 at 12:35 UTC | |
|
Re: How to print Unix newlines in Strawberry Perl on Windows
by roboticus (Chancellor) on Feb 20, 2013 at 11:56 UTC | |
by BrowserUk (Patriarch) on Feb 20, 2013 at 12:32 UTC | |
by Athanasius (Archbishop) on Feb 20, 2013 at 12:25 UTC |