We don't bite newbies here... much | |
PerlMonks |
(tye)Re: creating dynamically named 'my' variablesby tye (Sage) |
on Mar 01, 2002 at 06:52 UTC ( [id://148501]=note: print w/replies, xml ) | Need Help?? |
I've wanted to do this before. That is just one reason why I want to be able to write: eval "my \$$bar;" if $workAround BEGIN; where the statement-modifier BEGIN prevents the introduction of a new scope and stringy eval is changed to (be able to) avoid introducing a new level of scope. But I'd probably do what you want with something like: I think. - tye (but my friends call me "Tye")
In Section
Seekers of Perl Wisdom
|
|