in reply to Re: How do I remove whitespace at the beginning or end of my string?
in thread How do I remove whitespace at the beginning or end of my string?
...or... more simply, you could do it this way as a one liner:
s/^\s+|\s+$//g
In Section
Seekers of Perl Wisdom