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.
In reply to Get path to module by mjscott2702
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |