base.pm no longer tracks loaded modules
authorDavid Golden <dagolden@cpan.org>
Thu, 22 Sep 2011 17:33:06 +0000 (13:33 -0400)
committerDavid Golden <dagolden@cpan.org>
Thu, 22 Sep 2011 17:38:06 +0000 (13:38 -0400)
commit7a799f6bb3cac2e1bf9bede83579324cffa59c16
tree11262edc9e46026eebf36281b64cfd602cfc690a
parent0dcb3d887131a644381d6660eb13e2436e609eb9
base.pm no longer tracks loaded modules

Tracking modules loaded by base.pm to avoid reloading them means
that any module that wishes to force a reload can't just modify
%INC but must also interact with base.pm to clear its cache.

Removing the module-loaded checks have minimal impact.  The internal
call to require() is a NOP for a loaded module.  For an internal
package, the require() will fail with the same error message as
before, which base.pm then ignores.  Tracking modules loaded to avoid
this slight extra overhead is not worth the complexity for other
modules that wish to manipulate %INC.
dist/base/lib/base.pm