Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Using Variable Value as Variable Name

by kennethk (Abbot)
on Jun 28, 2012 at 13:58 UTC ( #978938=note: print w/ replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://978938]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (15)
As of 2015-07-07 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (89 votes), past polls