http://www.perlmonks.org?node_id=978938


in reply to Re: Using Variable Value as Variable Name
in thread Using Variable Value as Variable Name

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.

  • Comment on Re^2: Using Variable Value as Variable Name