Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: array assignment

by kvale (Monsignor)
on Nov 12, 2004 at 19:59 UTC ( #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
Node Status?
node history
Node Type: note [id://407503]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2020-05-29 01:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (166 votes). Check out past polls.

    Notices?