Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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
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 chilling in the Monastery: (2)
As of 2020-10-25 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (249 votes). Check out past polls.

    Notices?