The stupid question is the question not asked | |
PerlMonks |
Re: Accessing deeply burried arrays of hashesby Trinary (Pilgrim) |
on Jan 25, 2001 at 04:02 UTC ( [id://54160]=note: print w/replies, xml ) | Need Help?? |
$tophash{$value1}{$value2} = [$a, $b, $c, $d]; change this to: $tophash->{$value1}{$value2} = [$a,$b,$c,$d]; This can be referenced with $tophash->{$value1}{$value2}[$index], however you'd like. Each value in $tophash->{$one}{$two} will be a reference to an array, in your print statement something like print $subsubkey->[0] would get you at $a Enjoy Trinary
In Section
Seekers of Perl Wisdom
|
|