in reply to Re^2: Make my script faster and more efficient
in thread Make my script faster and more efficient
I've gotten gun-shy of chomp as well. In a mixed Unix/Windows environment, or running Cygwin, it's pretty common for $/ to not be set by default to the same line ending that is used in (some of) the input file(s). Monarch's method is more tolerant of incorrect or inconsistent line endings than chomp.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Make my script faster and more efficient
by gone2015 (Deacon) on Dec 03, 2008 at 13:28 UTC |
In Section
Seekers of Perl Wisdom