Keep It Simple, Stupid | |
PerlMonks |
Re: Creating array name by susbtituting stringby kcott (Archbishop) |
on Sep 12, 2017 at 10:00 UTC ( [id://1199186]=note: print w/replies, xml ) | Need Help?? |
"Is it possible" While it's possible, it's almost certainly a really bad move. You really need to show the context of what you're hoping to achieve. If you do that, you can probably get a much better answer. Perhaps consider writing something like this:
Here's the net effect of doing something like that:
It seems unlikely that's what you want; however, in the absence of more information, I can but guess. See "perlref: Symbolic references" for more on what you're currently trying to do, why not to, and how to avoid doing it accidently by using the strict pragma (which you should be using anyway). — Ken
In Section
Seekers of Perl Wisdom
|
|