Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Using Variable Value as Variable Name

by kennethk (Monsignor)
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 meditating upon the Monastery: (8)
As of 2014-08-23 13:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (173 votes), past polls