in reply to How to get line ranges of subroutines from Perl source code
You will need to ignore comments-lines and POD in between.
Cheers Rolf
( addicted to the Perl Programming Language)