In order to write Unix line ending, simply binmode the file after opening and before use and do the 'normal' thing of using "\n" for your line endings.
There are other ways involving explicitly 'popping' the :crlf IOLayer when opening the file, but it isn't documented properly and I cannot remember how to do it.
In reply to Re: How to print Unix newlines in Strawberry Perl on Windows
by BrowserUk
in thread How to print Unix newlines in Strawberry Perl on Windows
by evgen-i
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |