my $hash_ref = $array_ref->[2]; my $value = $hashref->{$key}; #### my $value = $array_ref->[2]->{$key}; #### my $value = $array_ref->[2]{$key};