go ahead... be a heretic | |
PerlMonks |
Re^2: Regarding Initialization and Use of Hashesby Anonymous Monk |
on Sep 04, 2012 at 17:51 UTC ( [id://991667]=note: print w/replies, xml ) | Need Help?? |
Specifically, the braces around the hash contents in the first assignment return a hash reference.
The parentheses in the second assignment give the context of a list, which will be interpreted as key-value pairs when assigned to a hash.
In Section
Seekers of Perl Wisdom
|
|