for (0..$#ratio_list){ $ratio_list[$_] *= 10; }
This does not filter values that are 0, but does multiply every element of the array by 10. Not sure if you really want to filter zeroes.
In reply to Re: mutliplying each element of a list by the same number
by olus
in thread mutliplying each element of a list by the same number
by steph_bow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |