in reply to Comparing three Hashes

What have you tried?

You should start by breaking up the problem into smaller steps, for example

perlintro should get you started, perlfaq4 could be valuable too.