while ( my $key = ) { chomp $key; if (exists($VIS{$key}) ) { print "$key, $VIS{$key}\n"; } }