Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^3: Checking a hash for two matching values.

by NetWallah (Abbot)
on Sep 17, 2013 at 19:17 UTC ( #1054525=note: print w/replies, xml ) Need Help??

in reply to Re^2: Checking a hash for two matching values.
in thread Checking a hash for two matching values.

Hmm - I did not notice any hints of requiring case-insensitivity, but in any case, that requirement is easily accommodated in my code by adding a "map {lc}" .
my @found= grep { my %r = map{lc} reverse %$_; exists $r{cat} && exis +ts $r{dog}} @pets;

             My goal ... to kill off the slow brain cells that are holding me back from synergizing my knowledge of vertically integrated mobile platforms in local cloud-based content management system datafication.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1054525]
and the monks are mute...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2017-01-18 01:01 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (159 votes). Check out past polls.