Module-less, one could still use just plain boring map:
sub amult { my ($a, $b) = @_; croak "Arrays of different sizes" unless $#$a==$#$b; map { $a->[$_] * $b->[$_] } (0..$#$a) }
In reply to Re: array add/sub/mult/div
by ariels
in thread array add/sub/mult/div
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |