Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2016-09-30 03:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (562 votes). Check out past polls.