in reply to @array elements multiplication with another array elements.
Here's another example using pairwise from the lovely List::MoreUtils package...
use List::MoreUtils qw( pairwise ); my @array1 = (3,4,6,5,8); my @array2 = (2,2,4,5,1); my @mults = pairwise { $a * $b } @array1, @array2; print "@mults\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: @array elements multiplication with another array elements.
by grizzley (Chaplain) on Oct 31, 2012 at 07:39 UTC | |
by tobyink (Canon) on Oct 31, 2012 at 07:51 UTC | |
by grizzley (Chaplain) on Oct 31, 2012 at 08:31 UTC |