Unfortunately fat comma is only going half way to be a hash separator (which is the normal use case) and there are already many use cases exploiting list context for syntactic sugar.
See for instance Re^4: Stop Using Perl and further discussion
Anyway some remarks:
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
°) a simple ($key) = %$hash_ref would have done the trick better
In reply to Re: Preventing unintended list expansion inside hash literals.
by LanX
in thread Preventing unintended list expansion inside hash literals.
by gregory-nisbet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |