(BTW in the general case exists $hash{$key} checks if an key exists in a hash, not defined $hash{$key}.)for my $k (@keys_existing_in_both) { my $exec = $hash2{$k}; # do something with $k my $result = md5($k); if ($result ne $hash2{$k}){ print "Hash sum miss match for '$k'!\n"; } }
In reply to Re^3: Need to get the intersect of hashes
by moritz
in thread Need to get the intersect of hashes
by jbush82
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |