in reply to Re^2: 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?
## My_Foo.pm package My_Foo; BEGIN { use strict; use warnings; use Carp; use Digest::MD5; our %inc_copy = %INC; }; use Net::FTP; %INC = %inc_copy; 1;
## test.pl use Math::BigInt; use My_Foo; for(keys(%INC)) {print "$_: $INC{$_}\n"}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How can I prevent a module from being added to the %INC hash?
by jacques (Priest) on Oct 04, 2006 at 07:08 UTC | |
by syphilis (Archbishop) on Oct 04, 2006 at 07:49 UTC |