in reply to RE: Re: printing \n to a file
in thread printing \n to a file
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: printing \n to a file
by tye (Sage) on Oct 16, 2000 at 18:27 UTC | |
by Fastolfe (Vicar) on Oct 17, 2000 at 01:03 UTC | |
by tye (Sage) on Oct 17, 2000 at 01:19 UTC |