Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: how to force Build test to load all modules from blib/lib first

by 2teez (Priest)
on Nov 22, 2012 at 04:15 UTC ( #1005052=note: print w/ replies, xml ) Need Help??


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
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005052]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2014-12-27 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls