Think about Loose Coupling | |
PerlMonks |
Re: Why does an array "dissolve" into a hash?by Athanasius (Archbishop) |
on Aug 20, 2015 at 01:20 UTC ( [id://1139244]=note: print w/replies, xml ) | Need Help?? |
Hello Cody Fendant, As LanX says, it’s a list assignment. So
is actually
The second assignment to key foo overwrites the first, so when the assignment is complete, $h{foo} is '666'. Hope that helps,
In Section
Seekers of Perl Wisdom
|
|