summaryrefslogtreecommitdiff
path: root/lib/CPAN.pm
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-01-10 01:18:04 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-01-10 01:18:04 +0000
commit0ff3fa1a9e904b2e8741c50731fed324d1b1afb7 (patch)
treea6b7d678741aad5d41e5eb388c08592e8c389318 /lib/CPAN.pm
parent4ff843088efaf20f33954a488d457e0ee0278019 (diff)
downloadperl-0ff3fa1a9e904b2e8741c50731fed324d1b1afb7.tar.gz
use $Config{version} rather than $] where appropriate
p4raw-id: //depot/perl@4777
Diffstat (limited to 'lib/CPAN.pm')
-rw-r--r--lib/CPAN.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CPAN.pm b/lib/CPAN.pm
index 432e72da05..2f22b773c7 100644
--- a/lib/CPAN.pm
+++ b/lib/CPAN.pm
@@ -3325,7 +3325,8 @@ sub perl {
$perl ||= $candidate if MM->maybe_command($candidate);
unless ($perl) {
my ($component,$perl_name);
- DIST_PERLNAME: foreach $perl_name ($^X, 'perl', 'perl5', "perl$]") {
+ DIST_PERLNAME:
+ foreach $perl_name ($^X, 'perl', 'perl5', "perl$Config::Config{version}") {
PATH_COMPONENT: foreach $component (MM->path(),
$Config::Config{'binexp'}) {
next unless defined($component) && $component;