in reply to keys on scalar warnings and lack thereof
See Mini-Tutorial: Dereferencing Syntax.
The curlies in a circumfix dereference can only be omitted if they contain a simple scalar like $NAME (or $BLOCK), not something more complicated like $_[0].
%$_[0] should be %{ $_[0] } (circumfix notation) or $_[0]->%* (postfix notation).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: keys on scalar warnings and lack thereof
by Anonymous Monk on May 14, 2026 at 18:07 UTC | |
by LanX (Saint) on May 14, 2026 at 18:35 UTC |