This assumes that the arrays @Arr1 and @Arr2 exist and are the same length.my @Products = map {$Arr1[$_] * $Arr2[$_]} 0..$#Arr1;
In reply to Re: How do I multiply the corresponding elements in two arrays together?
by Russ
in thread How do I multiply the corresponding elements in two arrays together?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |