Public Scratchpad | Download, Select Code To D/L |
I'm figuring that the lexical pads don't need to be messed with because the ops should be referring to them by memory address. And, I do want the addresses to remain the same when cloning. The reason being:
{ my $counter; sub inc_counter { $counter++ } }
If I chain inc_counter(), I want it to keep incrementing $counter. Maybe it is an option to clone_subref()?
I figured that B::Generate should be able to do this very easily, except I haven't the foggiest where to start. :-)