perl5ever has asked for the wisdom of the Perl Monks concerning the following question:
Normally we create CODE refs by specifying the source code for the subroutine.
I would like to create a perl function which takes a CODE ref as input, accesses the parse tree of the CODE ref and creates a new sub by specifying what the new sub's parse tree should be. Also, the new parse tree could contain elements from the first sub's parse tree.
Is this possible?
SO link: http://stackoverflow.com/questions/12332046/create-a-perl-sub-by-specifying-its-parse-tree
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: create a CODE ref from a parse tree?
by Corion (Patriarch) on Sep 08, 2012 at 16:43 UTC | |
Re: create a CODE ref from a parse tree?
by ig (Vicar) on Sep 08, 2012 at 19:45 UTC | |
Re: create a CODE ref from a parse tree?
by chromatic (Archbishop) on Sep 08, 2012 at 17:12 UTC | |
by perl5ever (Pilgrim) on Sep 08, 2012 at 20:43 UTC |