in reply to Re: How to keep track of INC hash? in thread How to keep track of INC hash?
++ Your response answered my question as posed. Upon further reflection, I realized that what I really want is to prevent my module from making additions to INC in the first place. Is there a way to do that? Basically what I want to find out is the contents of the INC hash from a script that uses my module (but my module's dependencies should not be included in that data, unless those dependencies were used elsewhere in the program). Perhaps I could delete those particular additions to INC in an END block?
Re^3: How to keep track of INC hash?
by grinder (Bishop) on Jul 15, 2008 at 20:16 UTC
|
I really want is to prevent my module from making additions to INC in the first place
In other words, you don't want your module to load additional packages? In that case, return undef from your filter. See require for more information (I think this is the crux of matter in the wisdom you seek).
• another intruder with the mooring in the heart of the Perl
| [reply] [Watch: Dir/Any] |
|