Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by shmem (Chancellor)
on May 31, 2018 at 10:15 UTC ( [id://1215534]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub hash_filter {
        my $source = shift;
    ...
            } keys %$filter
        }
    }
    
  2. or download this
    sub hash_filter {
        return {
    ...
            } grep { exists $_[0]->{$_} } keys %{$_[1]}
        }
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found