in reply to hashes intersection
This is a faq. Typing perldoc -q intersection or looking at perlfaq4 tells you how to do compute the symmetric difference. Also, perl hash intersection also has relevant results, for example Intersect two hashes