Old thread, I know, but this is *EXACTLY* the baseline I've needed to find for a project I'm currently working on.
If you add:
my $name = $sub->name; print "Found $name starting at line "...
One gets the actual name of the sub too.
Thanks!
-stevieb
In reply to Re^2: How to get line ranges of subroutines from Perl source code
by stevieb
in thread How to get line ranges of subroutines from Perl source code
by rockyb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |