in reply to Re: trimming space from both sides of a string
in thread trimming space from both sides of a string
Why not use something like:
$string =~ s/^\s+|\s+$//g;
That should cut spaces from start and end and leave the rest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: trimming space from both sides of a string
by muba (Priest) on Oct 12, 2010 at 12:42 UTC |