http://www.perlmonks.org?node_id=1058542


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.

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.