(in the absence of strict), it works as expected whether I use globals or lexicals
Really? It doesn't work for me with lexicals (neither with Perl 5.8.8, nor 5.10.0) — which confirms what the docs are saying:
"Only package variables (globals, even if localized) are visible to symbolic references. Lexical variables (declared with my()) aren't in a symbol table, and thus are invisible to this mechanism."
In reply to Re^2: Variable name
by almut
in thread Variable name
by nsteiner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |