in reply to Re: trimming space from both sides of a string
in thread trimming space from both sides of a string
What's wrong with:
I can't vouch for best speed in benchmarks, but works in any case I've needed such a construct for.$string =~ s/^\s*(.*?)\s*$/$1/;
In Section
Meditations