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.
In reply to Re^2: Native newline encoding
by sauoq
in thread Native newline encoding
by salva
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |