$n =~ tr/[0-9]//cd;
That should be tr/0-9//cd; (no brackets) because tr/// expects a character class, not a regular expression.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Re: Removing non digits
by sauoq
in thread Removing non digits
by campbell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |