Yes you do. (Note that perl itself understands unix line-end speak when reading in a script, but that's a different beast)
Perl isn't going to try and automatically translate, because it doesn't know WHY you are writing what you are writing. It's very possible that you DON'T want the \r automatically inserted/deleted (For example, this would break all the Dos<->Unix one liner converters.)
Update: As tye points out below, I missed the boat here.
In reply to RE: RE: Re: printing \n to a file
by swiftone
in thread printing \n to a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |