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

Re: Best practice for reading delimited file

by farang (Chaplain)
on Oct 16, 2013 at 19:37 UTC ( #1058542=note: print w/ replies, xml ) Need Help??


in reply to Best practice for reading delimited file

For v5.10 or later, generic newlines can be normalized with \R in a substitution expression.

s/\R/\n/;
See perlrebackslash under Misc section.


Comment on Re: Best practice for reading delimited file
Download Code
Replies are listed 'Best First'.
Re^2: Best practice for reading delimited file
by rjbioinf (Acolyte) on Oct 17, 2013 at 14:03 UTC
    Thank you all for the suggestions.  s/\R/\n/; looks the simplest solution.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2015-08-29 12:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (343 votes), past polls