Perl: the Markov chain saw | |
PerlMonks |
Re^2: Hash dereferencing in a loopby sundialsvc4 (Abbot) |
on Jun 08, 2013 at 14:21 UTC ( [id://1037856]=note: print w/replies, xml ) | Need Help?? |
Also, you may encounter “double-$” syntax: $$hashref{$key}. The two are equivalent, and notice in this case that the -> symbol does not appear. Recommend that you consistently use one or the other (your choice) in your programs. (Double-$ is less common.) Also note that, in cases where a sequence of -> symbols would technically be required, to reference elements of a hashref that contains hashrefs, Perl allows the additional ones to be omitted.
In Section
Seekers of Perl Wisdom
|
|