We don't bite newbies here... much | |
PerlMonks |
Re: Preventing unintended list expansion inside hash literals.by LanX (Saint) |
on Jan 05, 2017 at 19:24 UTC ( [id://1179025]=note: print w/replies, xml ) | Need Help?? |
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
update°) a simple ($key) = %$hash_ref would have done the trick better
In Section
Seekers of Perl Wisdom
|
|