PPI analyzes your source code and gives you a tree representation. I guess you can then search that tree for references (by name) to your subroutine and then visit the parents of these references until you find an enclosing named subroutine.
In reply to Re: how can I get here?
by Corion
in thread how can I get here?
by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |