in reply to
how to use chop / chomp effectively
Just in case there might be final space characters in the list, and in case it might be important to preserve those, you could do:
s/[\r\n]+$//;
[download]
Comment on
Re: how to use chop / chomp effectively
Download
Code
In Section
Seekers of Perl Wisdom