Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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

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.

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 wandering the Monastery: (13)
As of 2016-06-28 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (363 votes). Check out past polls.