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]+$//;