Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: extracting elements by key from an array of hashes

by Athanasius (Archbishop)
on Sep 25, 2015 at 13:25 UTC ( [id://1143013]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @aoh =
    (
    ...
        { k2 => undef },
        { k3 => 'v3'  },
    );
    
  2. or download this
    map { exists $_->{k2} ? $_->{k2} : () } @aoh;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1143013]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-24 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found