Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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

Replies are listed 'Best 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?
[Lady_Aleena]: And what would I rename RolePlaying/Random .pm to if I move all the RolePlaying/Random modules to just Random? Random/Util.pm Random/Base.pm, maybe lowercase the file name to indicate it is a bit different? I don't know yet.
[marioroy]: What does Random do?
[karlgoethebier]: https://www. youtube.com/watch? v=42WNHGr1jGI
[Lady_Aleena]: karlgoethebeir, I finished another project tonight, making a module which printed stop printing. It was a headache and a half.
[karlgoethebier]: Lady_Aleena: Try it!
[Lady_Aleena]: marioroy, it has 3 subroutines which can be fed data to generate random things. See here.
[Lady_Aleena]: marioroy, it is used in 24 other modules I wrote.
[Lady_Aleena]: GUH! I wrote a script better than I thought! 8)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2017-05-29 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?