in reply to Need to compare 2 hash values
Since you are new to Perl, perhaps the Basic debugging checklist can help.
By the way, the name of the language is Perl (not PERL).