in reply to Re: Native newline encoding
in thread Native newline encoding
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Native newline encoding
by BrowserUk (Patriarch) on May 22, 2012 at 18:10 UTC | |
by Anonymous Monk on May 22, 2012 at 19:09 UTC | |
by sauoq (Abbot) on May 22, 2012 at 18:34 UTC | |
by BrowserUk (Patriarch) on May 22, 2012 at 18:49 UTC | |
by sauoq (Abbot) on May 22, 2012 at 19:03 UTC | |
by BrowserUk (Patriarch) on May 22, 2012 at 19:12 UTC | |
| |
by sauoq (Abbot) on May 22, 2012 at 18:45 UTC |