Welcome to the Monastery | |
PerlMonks |
Re^2: perl determine a subroutine name by given lineby duelafn (Parson) |
on Aug 05, 2011 at 11:05 UTC ( [id://918733]=note: print w/replies, xml ) | Need Help?? |
Not quite. It seems to give the line number where the subroutine becomes known to perl. Thus, if the sub is used before it is defined the line numbers will be wrong. Example:
Then, perl -MO=Xref,d /tmp/test.pl gives (among other things):
Which is the line where f is used, not defined.
Good Day,
In Section
Seekers of Perl Wisdom
|
|