|
|
| XP is just a number | |
| PerlMonks |
Re: Variable Interpolation Interpolationby knobunc (Pilgrim) |
| on Mar 20, 2002 at 19:42 UTC ( #153102=note: print w/ replies, xml ) | Need Help?? |
|
You can just eval the bit where you want to get the variable's value:
But I am sure that dragonchild's solution is faster. The only gotcha is that it won't run under strict but no strict 'refs'; in the correct scope will turn off that check:
-ben
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||