http://qs321.pair.com?node_id=657829


in reply to hash keys compare

Do the parent keys have to match?

Otherwise,

my @unseen = do { delete %{$hash1->{$a}{$b}}, keys %{$hash2->{$d}{$e}}; keys %{$hash1->{$a}{$b}}; }
That leaves it up to you to set up the parent keys you want in the match. That's destructive of $hash1.

$a and $b are poor choices for variable names. They are sacred to sort and can have side effects.

After Compline,
Zaxo