|
|
| No such thing as a small change | |
| PerlMonks |
Re^2: Native newline encodingby sauoq (Abbot) |
| on May 22, 2012 at 17:59 UTC ( #971842=note: print w/ replies, xml ) | Need Help?? |
|
I don't think that really addresses the issue. One way to get what he wants would be to write "\n" to a file and then open that file, use binmode(), and then slurp it in and see what you get. It should be, for example, 0d0a on Windows and 0a on *nix. I have an inkling that it won't work that way with an in memory file... I don't really do Windows but I can check it on a machine with Strawberry Perl later.
-sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||