Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: using variables in late contexts?by Eimi Metamorphoumai (Deacon) |
on Nov 26, 2002 at 22:46 UTC ( [id://215957]=note: print w/replies, xml ) | Need Help?? |
Although the other replies will probably work, the idea is probably misguided. There are very, very few places where it's a good idea to use variables for variable names, and this isn't one of them. Try to rewrite your code using a hash instead. See mjd's excellent post for more information.
In Section
Seekers of Perl Wisdom
|
|