in reply to Re: mutliplying each element of a list by the same number
in thread mutliplying each element of a list by the same number
If you wanted to simultaneously create @minutes_list, you can use:for (@ratio_list) { $_ *= 10 }
for (@ratio_list) { ($_ *= 10) && push(@minutes_list, $_) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: mutliplying each element of a list by the same number
by chromatic (Archbishop) on May 15, 2008 at 17:49 UTC |