Or, as I prefer,
s/^\s+//, s/\s+$// for $string;
Makeshifts last the longest.
In reply to Re^2: How to eliminate white spaces,tabs,new lines at thestart and end of a long string ??
by Aristotle
in thread How to eliminate white spaces,tabs,new lines at thestart and end of a long string ??
by sugarkannan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |