in reply to
Way to remove the new line characters at the end of the content in a file
perlintro
#
Simple substitution
,
trim whitespace
s/\s+$// for @lines; ## extra "chomp", trim trailing whitespace
Comment on
Re: Way to remove the new line characters at the end of the content in a file
Download
Code
In Section
Seekers of Perl Wisdom