http://www.perlmonks.org?node_id=576240


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?

Replies are listed 'Best First'.
Re^3: How can I prevent a module from being added to the %INC hash?
by ikegami (Patriarch) 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!