Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Check if keys of hash is values of another hash!

by Bloodnok (Vicar)
on Jul 15, 2014 at 18:38 UTC ( #1093758=note: print w/replies, xml ) Need Help??


in reply to Check if keys of hash is values of another hash!

Methinx that something along the lines of if (grep { exists $b{$_} } keys %a) { ... might be one of the simpler solutions.

HTH,

A user level that continues to overstate my experience :-))

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2021-10-18 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (73 votes). Check out past polls.

    Notices?