Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 monks are mute...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-07-26 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (400 votes). Check out past polls.