This is what charclasses are for.
s/[\W_]//gRead more about them in perlrequick, perlretut, perlre, and perlreref (at for instance www.perldoc.com).
(Using alternation for this is really awful and not just style-wise.)
ihb
In reply to Re: Need a one liner
by ihb
in thread Need a one liner
by Ananda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |