if ($myHash{"unknown_if_this_key_exists_yet_or_not"}){...} #### my %h; if( $h{"isn't there"} ) { 1 } print "$_\n" for keys %h; # does not print anything