laziness, impatience, and hubris | |
PerlMonks |
Re: Is this a hash?by davido (Cardinal) |
on Jun 16, 2015 at 14:29 UTC ( [id://1130618]=note: print w/replies, xml ) | Need Help?? |
$thing will contain a hash reference, or more precisely, a reference to an anonymous hash constructed by the { ... } operator, which in this usage is a hash reference constructor. You can refer to the hash as a reference ($thing), or as a hash (%{$thing} or %$thing), and you may refer to its individual elements by dereferencing it: $thing->{'a'}. This would be a named hash:
Dave
In Section
Seekers of Perl Wisdom
|
|