in reply to
How to remove trailing white space when =~ s/\s+$//g; doesn't work
If
s/\s+$//g;
does not remove trailing spaces then there are no trailing spaces (you probably have something that only LOOKS like spaces).
Comment on
Re: How to remove trailing white space when =~ s/\s+$//g; doesn't work
Download
Code
In Section
Seekers of Perl Wisdom