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

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

does your cpan client disable sitecustomize.pl ? PERL5OPT?

I thought I'd fun up an install I have with sitecustomize.pl with

use Data::Dump qw/ dd pp /; use Time::HiRes qw/ time sleep /; use Benchmark qw/ cmpthese /;

After about a year I noticed some tests failing because of time ( 1376987115 != 1376987115.29688 )

Even if I used  $ENV{PERL5OPT}=q{ -MData::Dump=dd,pp -MTime::HiRes=time,sleep -MBenchmark=cmpthese }; the same tests would fail

I think pretty much all cpan clients let these options though, so now I switched to

my $cpanclients = grep { exists $ENV{$_} } qw{ AUTOMATED_TESTING NONINTERACTIVE_TESTING EXTENDED_TESTING RELEASE_TESTING AUTHOR_TESTING PERL5_CPANPLUS_IS_VERSION PERL5_CPANPLUS_IS_RUNNING PERL5_CPAN_IS_RUNNING CPAN_SHELL_LEVEL };;;;;; use if !$cpanclients qw/ Data::Dump dd pp /; use if !$cpanclients qw/ Time::HiRes time sleep /; use if !$cpanclients qw/ Benchmark cmpthese /;

I can understand inheriting @INC changes, but not all the other stuff