Do the parent keys have to match?
Otherwise,
That leaves it up to you to set up the parent keys you want in the match. That's destructive of $hash1.my @unseen = do { delete %{$hash1->{$a}{$b}}, keys %{$hash2->{$d}{$e}}; keys %{$hash1->{$a}{$b}}; }
$a and $b are poor choices for variable names. They are sacred to sort and can have side effects.
After Compline,
Zaxo
In reply to Re: hash keys compare
by Zaxo
in thread hash keys compare
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |