Something I don't think's been mentioned yet: remember that doing this won't preserve the closure-ness / binding of lexical variables.
And while possibly backwards from what you're trying to do you might look at Re: How to store CODE ref.
In reply to Re: Creating subroutines on the fly
by Fletch
in thread Creating subroutines on the fly
by pander
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |