Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: How do I combine arrays and array of hashes?

by eye (Chaplain)
on Jan 01, 2009 at 11:28 UTC ( #733613=note: print w/ replies, xml ) Need Help??


in reply to Re: How do I combine arrays and array of hashes?
in thread How do I combine arrays and array of hashes?

As fullermd notes, the OP's question is a bit unclear. If the intent was to combine arrays of hashes and produce a simple array (an operation not subject to problems with conflicting keys), fullermd's solution can be modified to:

@aoh3 = map {values %$_} (@aoh1, @aoh2);


Comment on Re^2: How do I combine arrays and array of hashes?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://733613]
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: (15)
As of 2015-07-06 16:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls