in reply to Checking a hash for two matching values.
Arguably more readable than those above ... (IMHO, code matches problem description closer)
my @found= grep { my %r = reverse %$_; exists $r{cat} && exists $r{d +og}} @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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Checking a hash for two matching values.
by moritz (Cardinal) on Sep 17, 2013 at 05:51 UTC | |
by farang (Chaplain) on Sep 17, 2013 at 19:11 UTC | |
by NetWallah (Canon) on Sep 17, 2013 at 19:17 UTC |
In Section
Seekers of Perl Wisdom