Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: array assignment

by kvale (Monsignor)
on Nov 12, 2004 at 19:59 UTC ( [id://407503]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @a = (1,2,3);
    @b = (4,5,6);
    @result = map {$a[$_]+$b[$_]} 0..$#a;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-03-19 05:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found