Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Handling Mac, Unix, Win/DOS newlines at readtime...

by Flexx (Pilgrim)
on Sep 16, 2002 at 09:09 UTC ( #198189=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $is_ebcdic_37   = "\n" eq chr(37);
    $is_ebcdic_1047 = "\n" eq chr(21);
    
  2. or download this
    @lines = split /\012\015?|\015\012?/, $file;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://198189]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2018-01-17 01:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (194 votes). Check out past polls.

    Notices?