in reply to perl determine a subroutine name by given line
That will give you a list of all the subroutines in that module. Then you can get the line number of where that sub starts by using pfunc, which is also from Module::Info. Using CGI again, you can get the line number for the start of a sub, let's use 'param':module_info -s /usr/lib/perl5/5.8.8/CGI.pm
pfunc param /usr/lib/perl5/5.8.8/CGI.pm
|
|---|