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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get path to module
by Anonymous Monk on Sep 28, 2010 at 08:56 UTC | |
by duelafn (Parson) on Sep 28, 2010 at 11:56 UTC | |
by spazm (Monk) on Sep 29, 2010 at 01:22 UTC | |
by mjscott2702 (Pilgrim) on Sep 28, 2010 at 09:21 UTC | |
|
Re: Get path to module
by mjscott2702 (Pilgrim) on Sep 28, 2010 at 08:47 UTC |