Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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?
[jamroll]: i don't always know where my variables are...but when i do, i have errors!

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2017-06-27 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (615 votes). Check out past polls.