in reply to Re^2: Need to get the intersect of hashes
in thread Need to get the intersect of hashes

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"; } }
(BTW in the general case exists $hash{$key} checks if an key exists in a hash, not defined $hash{$key}.)

Replies are listed 'Best First'.
Re^4: Need to get the intersect of hashes
by jbush82 (Novice) on May 15, 2008 at 08:30 UTC
    the output I'm getting when trying to use the value of the keys is ARRAY(0x1a1c4ec)ARRAY(0x2bb0d9c). Any ideas?