in reply to diff of two hashes.
i would do something like this, where %a and %b are the
hashes to compare:
scforeach (sort keys %{{%a, %b}}) { if (!exists($b{$_})) { print "$_ only in a\n" } elsif (!exists($a{$_})) { print "$_ only in b\n" } elsif ($a{$_} ne $b{$_}) { print "$_: values in a and b differ\n" + } }
In Section
Seekers of Perl Wisdom