Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Creating new variables from the value of other variablesby malloc (Pilgrim) |
on Jun 21, 2001 at 01:23 UTC ( [id://90202]=note: print w/replies, xml ) | Need Help?? |
THTOWTDI Dammit!
$$variablename = $newdata;
will do what you want. I think that you should know this, even though i am probably going to get downvoted. I have read Dominus's excellent paper quoted above, and heartily agree with it. You should to. Consider using a hash, for instance with the key as "variable name" and value as value.
hope this helps, -malloc
In Section
Seekers of Perl Wisdom
|
|