Don't ask to ask, just ask | |
PerlMonks |
variable through another variableby jnmfl (Initiate) |
on Jan 26, 2002 at 15:08 UTC ( [id://141761]=perlquestion: print w/replies, xml ) | Need Help?? |
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. Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|