Subject: | PERL5OPT can make all Devel::Cover tests fail |
As discussed on IRC, setting PERL5OPT makes Devel::Cover tests fail;
they show extra BEGIN blocks.
This is what my particular PERL5OPT looks like, and the code it loads;
it basically is a dynamic PERL5LIB.
[kane@myriad-wifi ~...oss/cpanplus-devel]$ printenv | grep PERL
PERL5OPT=-I/Users/kane/sources/svk/oss/dev-bin -Minc_all
[kane@myriad-wifi ~...oss/cpanplus-devel]$ cat ../dev-bin/inc_all.pm
### includes all libs under this directory
package inc_all;
use strict;
use warnings;
use File::Basename qw[dirname];
require lib;
my $dir = dirname( __FILE__ );
for my $lib ( map { "$_/lib" } <$dir/../*> ) {
next unless -d $lib;
lib->import( $lib );
}
1;