Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: A more elegant way to filter a nested hash?

by jimpudar (Pilgrim)
on May 31, 2018 at 20:39 UTC ( [id://1215577]=note: print w/replies, xml ) Need Help??


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

Interesting ideas. I especially like the first one.

This got me thinking that it may be more performant to simply delete the values I don't need from the original hash instead of constructing a new one.

For my current use case, this could be okay, but I could imagine future use cases where this would not be desirable...

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

  • Comment on Re^2: A more elegant way to filter a nested hash?

Log In?
Username:
Password:

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

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

    No recent polls found