Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 perusing the Monastery: (5)
As of 2015-07-02 01:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (25 votes), past polls