rtrim/ltrim following trivially from it.$str =~ s/^\s+//; $str =~ s/\s+$//;
In reply to Re: trimming space from both sides of a string
by JavaFan
in thread trimming space from both sides of a string
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |