Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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 ( #1005200=note: print w/ replies, xml ) Need Help??


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

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


Comment on Re^2: how to force Build test to load all modules from blib/lib first
Re^3: how to force Build test to load all modules from blib/lib first (use lib ... is for scripts not modules!)
by Anonymous Monk on Nov 23, 2012 at 01:00 UTC

    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
Node Status?
node history
Node Type: note [id://1005200]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2014-10-31 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (216 votes), past polls