As you're finding this isn't something trivial. You might have more luck with your current approach to find the file and then use PPI to parse the file contents.
You can always cheat with something like this kludge I came up with a while ago. :)
Update: Oop, pointed to the parent of that question, not my kludge; fixed link.
In reply to Re: Find the real code for a subroutine ref?
by Fletch
in thread Find the real code for a subroutine ref?
by bschmer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |