Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Evaluates two array index

by gopalr (Priest)
on Apr 06, 2005 at 11:15 UTC ( [id://445251]=note: print w/replies, xml ) Need Help??


in reply to Evaluates two array index

Hello,

use List::MoreUtils Module.

use List::MoreUtils qw(:all); @one=('2', '3', '4', '5', '10', '100'); @two=('6', '2', '3', '7', '2', '7'); @multi=pairwise{$a*=$b} @one,@two; print "\n@multi\n";

Output

12 6 12 35 20 700

Thanks,

Gopalr

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found