Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: How to find all occurrences of a key in a deeply nested structure?

by deMize (Monk)
on Oct 20, 2011 at 15:38 UTC ( [id://932711]=note: print w/replies, xml ) Need Help??


in reply to Re: How to find all occurrences of a key in a deeply nested structure?
in thread How to find all occurrences of a key in a deeply nested structure?

Thank you. Right now, I'm going to use Data::Walk, because of my familiarity and its resemblance to File::Find. However, I'm definitely going to look into this, since it seems to have some additional useful features (less typing). This looks like something that I can use with another project as well.

Edit: I just tested this out and it works well. Using this, I could loop through the results array, and add the keys of that hash to another array/hash to get one list of values.


Cheers,

Demize
  • Comment on Re^2: How to find all occurrences of a key in a deeply nested structure?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-24 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found