How do I compare two hashes in Perl without using Data::Compare?
See How do I test whether two arrays or hashes are equal?
Perl's FAQ and answers are part of you Perl distribution. You can view the version of this answer that came with your perl by running:
perl
$ perldoc -q equal
in your terminal.