Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Quick and portable way to determine line-ending string?

by mdillon (Priest)
on Aug 09, 2001 at 03:34 UTC ( #103284=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @lines = split m#$/#, $content;
  2. or download this
    my @lines = split m#\x0d\x0a?|\x0a#, $content;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2014-08-21 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (127 votes), past polls