in reply to hash question

Are you looking for hash keys that appear in only one hash? Then look at perlfaq4, "How can I get the unique keys from two hashes?"

Or do you want to get those keys that appear in both hashes? Then iterate over the keys of the first hash and check if they are present in the second one.