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!"); }
In reply to 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
in thread how to force Build test to load all modules from blib/lib first
by rbroberts
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |