diff options
Diffstat (limited to 'Master/tlpkg/tlperl/lib/CPANPLUS/Dist.pm')
-rw-r--r-- | Master/tlpkg/tlperl/lib/CPANPLUS/Dist.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Master/tlpkg/tlperl/lib/CPANPLUS/Dist.pm b/Master/tlpkg/tlperl/lib/CPANPLUS/Dist.pm index 5df2ef0c64f..51ee5fb9caa 100644 --- a/Master/tlpkg/tlperl/lib/CPANPLUS/Dist.pm +++ b/Master/tlpkg/tlperl/lib/CPANPLUS/Dist.pm @@ -1,4 +1,5 @@ package CPANPLUS::Dist; +use deprecate; use strict; @@ -14,6 +15,9 @@ use Params::Check qw[check]; use Module::Load::Conditional qw[can_load check_install]; use Locale::Maketext::Simple Class => 'CPANPLUS', Style => 'gettext'; +use vars qw[$VERSION]; +$VERSION = "0.9135"; + use base 'Object::Accessor'; local $Params::Check::VERBOSE = 1; @@ -610,11 +614,7 @@ sub _resolve_prereqs { ### 'perl' is a special case, there's no mod object for it if( $mod eq PERL_CORE ) { - ### run a CLI invocation to see if the perl you specified is - ### uptodate - my $ok = run( command => "$^X -M$version -e1", verbose => 0 ); - - unless( $ok ) { + unless( $cb->_vcmp( sprintf('v%vd',$^V), $version ) >= 0 ) { error(loc( "Module '%1' needs perl version '%2', but you ". "only have version '%3' -- can not proceed", $self->module, $version, |