Welcome to the Monastery | |
PerlMonks |
Re: Accessing referencesby bart (Canon) |
on Apr 22, 2004 at 01:21 UTC ( [id://347183]=note: print w/replies, xml ) | Need Help?? |
Both answers given thus far are equivalent, the arrows between subindexes are optional — but not the arrow between the variable name and the first index! That arrow makes the distinction between a scalar, that is a hash/array ref (which needs the arrow), and a an actual array/hash variable.
Anyway, please do take a look at the excellent tutorial for references that on modern perls is part of the core distro, as well as online: perlreftut
In Section
Seekers of Perl Wisdom
|
|