Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Common hash keys

by ferreira (Chaplain)
on Jun 07, 2008 at 14:45 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-29 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found