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?

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


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

And, if the data in question comes from an XML source, as it very often does, consider using XSLT technology to directly extract only the items that are of interest to you, letting the XSLT engine do the walking for you.
  • Comment on Re: A more elegant way to filter a nested hash?

Replies are listed 'Best First'.
Re^2: A more elegant way to filter a nested hash?
by Your Mother (Bishop) on May 31, 2018 at 13:30 UTC

    And if the data in question comes from Hollerith cards, as they only used to do, consider keeping your cards sorted and grouped by column count and letting a CDC peripheral do the walking for you.

      Thankfully, the only place I've ever seen a punch card is at the Computer History Museum IBM 1401 Demo Lab :).

      The input data here is not XML or JSON based, just Perl hashes.

      Best,

      Jim

      πάντων χρημάτων μέτρον έστιν άνθρωπος.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2019-10-22 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?