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

Re: Common hash keys

by ferreira (Chaplain)
on Jun 07, 2008 at 14:45 UTC ( #690836=note: print w/replies, xml ) Need Help??


in reply to Common hash keys

It should be as simple as that:

my @common_keys = grep { exists $hash1->{$_} } keys %$hash2;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2023-01-28 06:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?