in reply to Preventing unintended list expansion inside hash literals.
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Preventing unintended list expansion inside hash literals.
by vr (Curate) on Jan 06, 2017 at 19:26 UTC | |
by LanX (Saint) on Jan 07, 2017 at 13:38 UTC | |
by LanX (Saint) on Jan 06, 2017 at 20:04 UTC | |
|
Re^2: Preventing unintended list expansion inside hash literals.
by Anonymous Monk on Jan 05, 2017 at 20:15 UTC | |
by LanX (Saint) on Jan 05, 2017 at 20:20 UTC | |
by Anonymous Monk on Jan 05, 2017 at 21:56 UTC | |
by soonix (Chancellor) on Jan 06, 2017 at 08:45 UTC | |
by karlgoethebier (Abbot) on Jan 06, 2017 at 10:43 UTC |