in reply to Need a one liner

This is what charclasses are for.

  s/[\W_]//g

Read 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