Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: Native newline encoding

by salva (Abbot)
on May 23, 2012 at 08:53 UTC ( #971988=note: print w/replies, xml ) Need Help??

in reply to Re: Native newline encoding
in thread Native newline encoding

Interestingly, Encode::Newlines does it as follows:
use constant Native => ( ($^O =~ /^(?:MSWin|cygwin|dos|os2)/) ? CRLF : ($^O =~ /^MacOS/) ? CR : LF );

I guess that this, which some special handling for VMS where the line ending is set by file and EDBCDI systems where line endings are the lesser problem, should cover 99% of the cases.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://971988]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2016-10-22 04:15 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (292 votes). Check out past polls.