Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Is there a variable in which Perl stores the native file delimiter for the platform on which your script is running?

by tye (Sage)
on Dec 23, 2005 at 05:19 UTC ( [id://518701]=note: print w/replies, xml ) Need Help??


in reply to Re: Is there a variable in which Perl stores the native file delimiter for the platform on which your script is running?
in thread Is there a variable in which Perl stores the native file delimiter for the platform on which your script is running?

my $newline = "\n"; $newline = "\r\n" if grep $_ eq "crlf", PerlIO::ge­t_layers(*­STDOUT);

- tye        

  • Comment on Re^2: Is there a variable in which Perl stores the native file delimiter for the platform on which your script is running?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2025-04-29 23:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.