The goal is to use B::Deparse to check some properties of the code (kind of lint). The line numbers are needed to report precise information to the developer.
FWIW, yes, I'm aware that B::Lint and Perl::Critic exist.
I will look at PPI but this seems to be quite large...
In reply to Re^2: B::Deparse and sub line numbers
by Anonymous Monk
in thread B::Deparse and sub line numbers
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |