Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1215529]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-25 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found