in reply to Way to do a "scalar ref"?
Could you elaborate further on why you would want to use a string to represent a variable name? It is possible with Perl (for package globals, not for lexical 'my' variables), and the answer is in perlref, but it's usually the wrong way to resolve whatever programming corner you're painted into. There are a few exceptions, but by the time you find one of the legitimate exceptions you will already know how, and why not.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Way to do a "scalar ref"?
by ultranerds (Hermit) on Sep 26, 2011 at 08:51 UTC | |
by moritz (Cardinal) on Sep 26, 2011 at 09:02 UTC | |
by johngg (Canon) on Sep 26, 2011 at 09:13 UTC | |
by AnomalousMonk (Archbishop) on Sep 26, 2011 at 18:45 UTC |