Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 surveying the Monastery: (7)
As of 2014-07-12 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (239 votes), past polls