This sounds suspiciously like an XY Problem - there could be a much better solution for the bigger problem you are trying to solve, but you need to tell us what that bigger problem is.
You could of course just open the script like an ordinary file, and try to parse the line in which the sub is defined. That's not very reliable, so a totally different approach to your bigger problem might be good idea.
In reply to Re: perl determine a subroutine name by given line
by moritz
in thread perl determine a subroutine name by given line
by avo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |