in reply to Implicetely deparse, change and replace perlcode in file

the idea was to get rid of codefilters

Zephram has been making Perl's parser callable. Look into his work.

So does anybody know of a way to change the op-tree just after compilation?

I don't see how that's useful here, but autovivification does this.

  • Comment on Re: Implicetely deparse, change and replace perlcode in file

Replies are listed 'Best First'.
Re^2: Implicetely deparse, change and replace perlcode in file
by LanX (Saint) on Jun 20, 2011 at 18:36 UTC
    Do you mean Zefram's B::CallChecker ?

    Thanks I'll have a look into it, but I forgot to mention that I'm looking for pure perl solutions.

    Cheers Rolf

      He's changing Perl itself. I don't know if his modules take advantage of his changes yet, but some of his modules should provide ideas as well.

      I didn't mention anything specific, because I don't know the specifics.

      Devel::Declare, Devel::CallParser and Devel::CallChecker are definitely worth studying. The latter two do appear to take advantage of his change to Perl.