if (exists $hash{$key}) { print "value is $hash{$key}\n"; }