Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: @array elements multiplication with another array elements.

by tobyink (Abbot)
on Oct 30, 2012 at 16:39 UTC ( #1001528=note: print w/ replies, xml ) Need Help??


in reply to @array elements multiplication with another array elements.

my @array1 = (3,4,6,5,8); my @array2 = (2,2,4,5,1); my @mults = map { $array1[$_] * $array2[$_] } 0..$#array1; print "@mults\n";
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'


Comment on Re: @array elements multiplication with another array elements.
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001528]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2014-11-01 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    If a safe, affordable anti-ageing treatment that extended life indefinitely were to become available, would you take it?



    Results (4 votes), past polls