http://www.perlmonks.org?node_id=1001537


in reply to Re: @array elements multiplication with another array elements.
in thread @array elements multiplication with another array elements.

Or use a for ( or foreach ) loop like so:

my @answers; for my $x ( 0 .. $#array1 ) { push @answers, $array1[$x] * $array2[$x]; }

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me