Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Newlines: reading files that were created on other platforms

by bobf (Monsignor)
on Feb 02, 2005 at 00:48 UTC ( #427108=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $file =~ s[(\015)?\012(?!\015)][\n]g;
        $file =~ s[(\012)?\015(?!\012)][\n]g;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://427108]
Approved by Limbic~Region
Front-paged by holli
help
Chatterbox?
and cookies bake in the oven...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2018-07-17 02:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (353 votes). Check out past polls.

    Notices?