in reply to mutliplying each element of a list by the same number
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: mutliplying each element of a list by the same number
by pc88mxer (Vicar) on May 15, 2008 at 15:58 UTC | |
by chromatic (Archbishop) on May 15, 2008 at 17:49 UTC |