jacques has asked for the wisdom of the Perl Monks concerning the following question:
That tells me what %INC looks like before I 'use' anything in my module. In other words, it tells me what files, if any, were loaded before my own.BEGIN { %Seen = %INC }
What I would like to know are the entries made to %INC by my module and *only* by my module. So if my module doesn't use CGI.pm and a script is using my module like so:
I could tell that the CGI module was used by the script and not by my module. How could I figure this out from within my module? I tried using an END block to no avail.use My::Module; use CGI;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to keep track of INC hash?
by grinder (Bishop) on Jul 15, 2008 at 05:27 UTC | |
by massa (Hermit) on Jul 15, 2008 at 10:32 UTC | |
by jacques (Priest) on Jul 15, 2008 at 19:08 UTC | |
by grinder (Bishop) on Jul 15, 2008 at 20:16 UTC | |
|
Re: How to keep track of INC hash?
by GrandFather (Saint) on Jul 15, 2008 at 04:46 UTC |