in reply to Re: Knowing when a code string contains code that will be executed at compile-time/end?
in thread Knowing when a code string contains code that will be executed at compile-time/end?

Although PPR can be used to match Perl code or parts of Perl code (like say if you're trying to implement your own keyword and need a way to express the grammar for it), it is not a real parser, that is, it doesn't really build a syntax tree that can then be inspected. In that respect, PPI is better.

  • Comment on Re^2: Knowing when a code string contains code that will be executed at compile-time/end?