If you want to modify the original array contents then you could modify BioLion's code thus:
$_ *= 2 for grep {looks_like_number($_)} @array;
In reply to Re^3: cool way of manipulating array elements
by GrandFather
in thread cool way of manipulating array elements
by pashanoid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |