|
|
| No such thing as a small change | |
| PerlMonks |
Re^5: Another newb questionby dasgar (Chaplain) |
| on Aug 09, 2012 at 03:40 UTC ( #986410=note: print w/ replies, xml ) | Need Help?? |
|
Since you're reading in from STDIN, you might need to use chomp on the last element of your array. I haven't tested it, but you might be able to modify your foreach loop to something like below, which uses chomp on each element.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||