Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 scrutinizing the Monastery: (5)
As of 2014-07-12 17:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls