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.
In reply to Re^2: Knowing when a code string contains code that will be executed at compile-time/end?
by haukex
in thread Knowing when a code string contains code that will be executed at compile-time/end?
by perlancar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |