jnmfl has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (data structures)
I have the name of a variable stored in $var. How can I make it so $data grabs the variable name? I tried this:
I put $$var with two $'s because one '$' for the variable, then right after that the '$var' places the variables name, I hope there's a way to do this, I'm just using bad syntax and I don't know what the procedure is called.$data = $$var;
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: variable through another variable⭐
by Juerd (Abbot) on Jan 26, 2002 at 17:01 UTC | |
Re: variable through another variable
by Roy Johnson (Monsignor) on Apr 14, 2004 at 17:33 UTC | |
Re: variable through another variable
by metadoktor (Hermit) on Jan 26, 2002 at 17:03 UTC | |
Re: variable through another variable
by Roy Johnson (Monsignor) on Apr 22, 2005 at 17:53 UTC |
Back to
Seekers of Perl Wisdom