I would like to take each member of an array, and remove anything in that member that is not a digit.
I tried this:
but this did not work: I just ended up with nothing. What am I doing wrong!?foreach $n(@array) { $num=s/\D//i; print $num; }
Yours humbly,
Campbell
In reply to Removing non digits by campbell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |