in reply to Find the real code for a subroutine ref?

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.

  • Comment on Re: Find the real code for a subroutine ref?