Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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)}; }


Comment on Re: Merging arrays
Download Code

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 drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-07-24 20:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls