If you're wanting to strip more than one thing, just use |
$var =~ s/\s+|\n//g;
However, the character class \s contains \n, so it's redundant.
In reply to Re: Multiple Search and Replace in Single Line
by wind
in thread Multiple Search and Replace in Single Line
by perl@1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |