my $queryFile = q{file2}; my $queryRefID = q{XX}; my $resRefName = $fileInfo{$queryFile}->{$queryRefID};