{ no autovivification; my %hash; if( exists $hash{key1}{key2}{key3} ) { ...; } }