Subject: | Fails on Win32 |
Minimal test case:
Show quoted text
>md lib\Foo
Show quoted text>copy nul lib\Foo.pm
1 file(s) copied.
Show quoted text>copy nul lib\Foo\Bar.pm
1 file(s) copied.
Show quoted text>perl -MTest::LoadAllModules -e"all_uses_ok( search_path => 'Foo' )"
Can't locate Win32.pm in @INC (you may need to install the Win32 module) (@INC contains: lib) at C:/progs/sp5302-x64/perl/lib/Cwd.pm line 605.
BEGIN failed--compilation aborted.
1..0
On Windows, Module::Pluggable::Object ends up trying to load Win32.pm, which fails because of how this modules clobbers @INC.