Syntactic Confectionery Delight | |
PerlMonks |
Get path to moduleby mjscott2702 (Pilgrim) |
on Sep 28, 2010 at 08:41 UTC ( [id://862372]=perlquestion: print w/replies, xml ) | Need Help?? |
mjscott2702 has asked for the wisdom of the Perl Monks concerning the following question: Dear Monks, I am currently trying to reverse-engineer a fairly large Perl web application I have inherited, that relies heavily on the CGI and CGI::Template modules, as well as a host of custom modules. There is a lot of manipulation of where perl locates the custom modules, and unfortunately, they seem to be duplicated in several places. So, my simple (hopefully) question is - how do I find which "instance" of a module is actually used? For example, with a statement such as: my $util = new MyApp::Utilv2;how can I find out which one of the several possibilities was actually invoked? Yes, that should probably be written as my $util = MyApp::Utilv2->new()but like I said, I inherited this! Utilities such as perlwhich etc probably won't help me here, since so much manipulation of @INC, use lib etc is going on.
Back to
Seekers of Perl Wisdom
|
|