"be consistent" | |
PerlMonks |
Re^3: different length of a line from linux and windows textfile? ("\r")by SimonPratt (Friar) |
on Mar 17, 2014 at 16:48 UTC ( [id://1078628]=note: print w/replies, xml ) | Need Help?? |
You are right that chomp wont pick up \r on its own, however it absolutely will pick up \r\n and correctly remove both characters, so the only time this would be an issue is if your file is corrupted, or specifically crafted to utilise \r in some way.
In Section
Seekers of Perl Wisdom
|
|