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


in reply to how to force Build test to load all modules from blib/lib first

Hi rbroberts,

"..I've tried playing with @INC with no luck.." How?

Have you tired lib, like so:

use lib "./blib/lib";

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
  • Comment on Re: how to force Build test to load all modules from blib/lib first
  • Download Code

Replies are listed 'Best First'.
Re^2: how to force Build test to load all modules from blib/lib first
by Anonymous Monk on Nov 22, 2012 at 04:23 UTC

    blib is for blib, and Module::Build/ExtUtils::MakeMaker/Module::Install... all do it by default, and even prove has a -b switch to load blib

      All of those put blib/lib near the front of @INC. In spite of that, something weird is going on with module load order. Since it's happening at compile time, I can only see the state after the loads at which point %INC shows the wrong module loaded for the one.