use Test::More qw/no_plan/; use Test::Deep; cmp_deeply \%h1, \%h2, "testing hashes"; __END__ not ok 1 - testing hashes # Failed test 'testing hashes' # in /tmp/h at line 11. # Comparing hash keys of $data # Missing: 'd', 'e' # Extra: 'c' 1..1 # Looks like you failed 1 test of 1.