See also Why it's stupid to use a variable as a variable name and, if still motivated, Symbolic references. The relevant line is
Lexical variables (declared with my()) aren't in a symbol table, and thus are invisible to this mechanism.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re^2: Using Variable Value as Variable Name
by kennethk
in thread Using Variable Value as Variable Name
by umama
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |