Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by Flexx (Pilgrim)
on Sep 16, 2002 at 09:09 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://198189]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found