Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by rbroberts (Initiate)
on Nov 22, 2012 at 11:53 UTC ( [id://1005119]=note: print w/replies, xml ) Need Help??


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

Found it! The common module was loading yet another common module that included "use lib ..." that was putting the installed area back in front of blib/lib. I'm beginning to think use lib is evil and PERL5LIB is a much better approach througout.
  • Comment on Re: how to force Build test to load all modules from blib/lib first

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 23, 2012 at 00:51 UTC

    I'm beginning to think use lib is evil and PERL5LIB is a much better approach througout.

    No, lib is not evil, lib simply doesn't belong in modules, it belongs in scripts

      Here is patch for lib.pm, add to sub import

      if( ( caller )[1] =~ /\.pm$/ ){ require Carp; Carp::croak( "use lib ... is for scripts not modules!"); }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-18 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found