c. church writes:

> If that's bad, just use something nearly as bad once, i.e.:
> 
> my $hRef = \%{ $hash{foo}{bar} };

$hash{foo}{bar} is already a hashref. You don't need to dereference it just
to reference it back:

        my $href = $hash{foo}{bar};

Having said that, I don't believe that there should be any one rule
governing the depth of your hashes. Different people think differently, and
therefore might choose different data structures. Whatever makes you feel
more comfortable. This is Perl we're talking about.

--Ala

Reply via email to