in reply to Using Variable Value as Variable Name
How can I use a variable as a variable name?
perldoc -q variable [download]
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.