P is for Practical | |
PerlMonks |
Re: Reading in a file not recognizing linesby bobf (Monsignor) |
on May 22, 2006 at 02:32 UTC ( [id://550851]=note: print w/replies, xml ) | Need Help?? |
I think Fletch nailed it. I ran into a situation a while ago where a data file was created on a Mac (with \r line endings) but it was then moved to a Windows machine (which expected \r\n line endings). In Newlines: reading files that were created on other platforms I asked our fellow monks for suggestions, and got a lot of great responses. Among them were tips to look at File::LocalizeNewlines and binmode.
In Section
Seekers of Perl Wisdom
|
|