whats the simplest way to find source file and line number of a function (start and end)?
the only way I can think of is parsing the output of
B::Deparse->new("-l")->coderef2text( \&func );
that is something like
{ #line 1852 "/usr/share/perl/5.10/perl5db.pl" ... #line 3541 "/usr/share/perl/5.10/perl5db.pl" (); }
Any easier way?
Cheers Rolf
In reply to finding source position of function by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |