exists $hash {key} && print "Key is present, value may be undefined."; defined $hash {key} && print "Key is present, and its value is defined."; $hash {key} && print "Key is present, its value is defined and true.";