Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: How can I prevent a module from being added to the %INC hash?

by jacques (Priest)
on Oct 04, 2006 at 03:33 UTC ( #576240=note: print w/ replies, xml ) Need Help??


in reply to Re: How can I prevent a module from being added to the %INC hash?
in thread How can I prevent a module from being added to the %INC hash?

Is it possible to use a module another way? For example, putting a reference to a subroutine that uses a module into @INC? I think the docs indicate that only the reference is added to %INC. But I have never tried adding a code reference to @INC.


Comment on Re^2: How can I prevent a module from being added to the %INC hash?
Re^3: How can I prevent a module from being added to the %INC hash?
by ikegami (Pope) on Oct 04, 2006 at 04:43 UTC

    Yes, read the module file and eval it.

    What are you trying to do? What's the end goal?

      It looks like ammon already solved it. I was attempting to do something similar to Devel::Loaded
        You don't want your Devel::Loaded to show up in the module dump? You're better off just filtering it out when dumping!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://576240]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2014-07-26 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (177 votes), past polls