Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: appending arrays

by Roy Johnson (Monsignor)
on Nov 19, 2003 at 16:36 UTC ( [id://308334]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @new = map($array1[$_] . $array2[-1-$_], 0..$#array1);
    
  2. or download this
    my @new;
    push (@new, $array1[$_].$array2[-1-$_]) for 0..$#array1;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-03-28 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found