in reply to Getting file and line number where a subroutine is declared

Did anyone find a solution now? :)

Though otherwise documented does B::svref_2object($coderef)->GV->LINE; only return the LAST line of the subs-body.

And B::svref_2object($coderef)->START->line; only returns the first OP of the body¹, i.e. not only the function head is missing, but also any empty or commented lines at body's start.

Cheers Rolf

( addicted to the Perl Programming Language)

¹)to be precise only the line of the END of a multiline OP.