Skip Menu |

This queue is for tickets about the Module-Pluggable CPAN distribution.

Report information
The Basics
Id: 98009
Status: resolved
Priority: 0/
Queue: Module-Pluggable

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 3.9
Fixed in: 4.1



Subject: Test-detecting blib-only logic hides other installed modules
The logic in Module::Pluggable::Object that detects the presence of blib.pm and then selects only those paths in @INC which match "/blib/" hides any other modules that are installed elsewhere on my path, such as /usr/share or $HOME/lib/perl5. I find it useful to be able to run a local testing version of an application from within blib but still see plugins installed elsewhere on my system to test it against, before installing it for real. Could perhaps we have an option to disable that check, allowing all of @INC to be searched even when running via blib? Currently my hacky workaround is to delete $INC{"blib.pm"} which happens to defeat it. -- Paul Evans
On Wed Aug 13 20:10:10 2014, PEVANS wrote: Show quoted text
> Could perhaps we have an option to disable that check, allowing all of > @INC to be searched even when running via blib? Currently my hacky > workaround is to > > delete $INC{"blib.pm"} > > which happens to defeat it.
Oops; I happen to see I'm running an ancient version of M::P and an option to do precicely this was already added in 4.1. I'll close this bug now ;) -- Paul Evans