Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Merging arrays

by Anonymous Monk
on Jun 27, 2013 at 19:22 UTC ( #1041083=note: print w/replies, xml ) Need Help??


in reply to Merging arrays

If you don't mind consuming them:

while( @input1 and @input2) { push @output, {(shift @input1), (shift @input2)}; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1041083]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2016-12-06 14:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (105 votes). Check out past polls.