if ( defined ?attr1Hash{$attr1}){ my $key ="attr1.attr2.attr3"; $arrayRef = $fullHash{$key}; } #### $arrayRef = $fullHash{$attr1,$attr2,$attr3};