Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: A more elegant way to filter a nested hash? ( data xpath, dpath, diver, walk, walker, visitor, jquery, pquery, json path, css csel, MarpaX::xPathLike)

by Anonymous Monk
on May 31, 2018 at 08:51 UTC ( #1215529=note: print w/replies, xml ) Need Help??


in reply to A more elegant way to filter a nested hash?

I came up with the following function which seems to work well:

Hi,

How do you use hash_filter?

Which of these most resembles your solution?

Which of these would most shorten your solution?

Which is more elegant? Which is irrelevant? Which is more used/famous has examples of use on perlmonks?

Data::Diver , Data::DPath, Data::Path, Data::Walk, Data::Walker, Data::Visitor::Callback, Data::pQuery/MarpaX::xPathLike, Data::CSel, JSON::Path

  • Comment on Re: A more elegant way to filter a nested hash? ( data xpath, dpath, diver, walk, walker, visitor, jquery, pquery, json path, css csel, MarpaX::xPathLike)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2020-02-29 01:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (128 votes). Check out past polls.

    Notices?