Keep It Simple, Stupid | |
PerlMonks |
Re: Re: Re: Exegesis 6 - Named bindingby Elian (Parson) |
on Jul 31, 2003 at 14:47 UTC ( [id://279598]=note: print w/replies, xml ) | Need Help?? |
Then the answer's yes--because the key has the same name as the variable on the left side of the assignment that key's value is bound to the variable. That's how it's supposed to work, as it means you don't have to rely on hash ordering or manual looping over the RHS. It's essentially named arguments for binding, though I can see cases where it wouldn't necessarily be what you want to do...
In Section
Seekers of Perl Wisdom
|
|