Credit to perlmonkey for corrections to original post -- Ed.#replace 0 or more whitespaces at the beginning # or 0 or more whitespaces at the end # with nothing $string =~ s/^\s+|\s+$//g;
In reply to Re: How do I remove whitespace at the beginning or end of my string?
by infinityandbeyond
in thread How do I remove whitespace at the beginning or end of my string?
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |