I can imagine a lot of reasone why you want to do this. And this is actually a feature I like much at Perl. Even though I do not use it very often.
But you have to consider performance issues, if you have evaluated code inside the performance driver (i.e. critical loop) of your script. When Perl sees a variable in your evaluated string, it recompiles it every time . From my current knowledge, I think Perl does not know, if the variable and therefore the string has changed. If not, there is no need to recompile it. But I do not know, if I am up-to-date here.
Of course, there are solutions for this issue and I do not know, if performance aspects are critical for pander. I just wanted to mention it, since I one was at such a point of Perl programming: Performance tuning for evaluated code segments.
In reply to Re^2: Creating subroutines on the fly
by m-rau
in thread Creating subroutines on the fly
by pander
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |