if ($myHash{unknown}{if}{this}{key}{combination}{exists}{yet}{or}{not} ){...} #### use Data::DPath 'dpath'; if( dpath('/unknown/if/this/key/combination/exists/yet/or/not') ) { # Yay }