in reply to "chomp" not working
What is in $var, what are the results of the print, and what are you expecting?
I expect both prints to print out the same. After all, the chomp has nothing to do, as there will be no newlines left after the split.
In Section
Seekers of Perl Wisdom