in reply to Re: Fail to see referencing problem to arrays (in an array of arrays)
in thread Fail to see referencing problem to arrays (in an array of arrays)
Thanks for the explanation and suggestions. As it turns out the root of my confusion lay in accessing the resulting array. Just for completeness sake: I needed to check the existence of a reference using defined before printing.
for my $tree (0..17) { for my $stem(0..10) { for my $height (0..2) { my $line=$mdarray[$tree][$stem][$heigh +t]; if (defined @$line) {print "$tree,$ste +m,$height : @$line \n" } } } }
|
|---|