or you can also use the substitution operator but specifying a choice: UPDATE to CODE: (opps)$a =~ tr/\W_//g;
UPDATE: It might also be worth your while to read the perlop documentation$a =~ s/(\W|_)//g;
In reply to Re: Need a one liner
by crabbdean
in thread Need a one liner
by Ananda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |