Perl Monk, Perl Meditation | |
PerlMonks |
Re: Script behaving differently on Linux vs windowsby Corion (Patriarch) |
on May 16, 2016 at 17:50 UTC ( [id://1163153]=note: print w/replies, xml ) | Need Help?? |
The file contains Windows newlines (\r\n), but you only remove the trailing newline \n, leaving the \r at the end. Instead of chomp, remove all whitespace from the end of each line:
In Section
Seekers of Perl Wisdom
|
|