in reply to Dereferencing of built-ins with crappy names

I guess the syntax $$name doesn't "confuse" the parser when name is of the form \w+, while any punctuation variable will look like the variable $$ followed by an operator or other token. $$; is parsed as $$ ;, $$) as $$ ) etc, but _ is not a perl built-in specific character (and is a valid character to start a variable name in every language I can think of) so $$_ is understood like any other $$name variable.

Replies are listed 'Best First'.
Re^2: Dereferencing of built-ins with crappy names
by hurricup (Pilgrim) on Jul 10, 2015 at 19:02 UTC

    Seems you are right. Even $/ variable which can be used with reference, can't be plainly dereferenced.

    Want to plus you, but no votes left :( Thanks!