Also see perlfaq4, which adresses the problem of finding the common elements of two structures.
In reply to Re: intersecting two hashes by Corion in thread intersecting two hashes by bsherkhane