in reply to Compare 2 Hashes w/ Multiple Variables

Hello,
In addition to what Laurent_R said, maybe you need to do
foreach my $key (keys %hash1) { if (exists $hash2{$key}) { print "$key\n"; } } close IN;
by initializing $key with my ..?