in reply to Comparing two deep hash of hashes

There's a typo in the code you provided.

sub walk_hash { my ($h1, $h2) = shift; foreach my $key (keys %$h) { # I presume you mean %$h1 here? if( ref $h->{$key}) { # And $h1->... here? walk_hash( $h->{$key} ); # and here? } else { print $h->{$key}; # and here as well? } } }

Other than that, I suggest you check the modules Tux pointed at, above.

Replies are listed 'Best First'.
Re^2: Comparing two deep hash of hashes
by Anonymous Monk on Oct 14, 2014 at 11:58 UTC
    Hi, This code is not working Thanks, Lakshmareddy.