http://www.perlmonks.org?node_id=1005201


in reply to Re^2: 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

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!"); }