in reply to Re^2: Getting file and line number where a subroutine is declared
in thread Getting file and line number where a subroutine is declared

They won't work if the code is declared after I try to inspect it

You seem to be confusing function declaration and function definition. You are getting is the line number of the declaration. What you want to line number of the definition.

  • Comment on Re^3: Getting file and line number where a subroutine is declared