summaryrefslogtreecommitdiff
path: root/configpm
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-17 17:00:05 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-17 17:00:05 +0000
commitde98c55394539e7de6972ea206c9d6db5b1fd2a3 (patch)
treefcf660d3c94b29e5940583fbb1ec5b908f193c79 /configpm
parent2954239bd785bd1e3837b70fcb2957307430febf (diff)
downloadperl-de98c55394539e7de6972ea206c9d6db5b1fd2a3.tar.gz
make Config.pm report sane errors with older perls
p4raw-id: //depot/perl@5787
Diffstat (limited to 'configpm')
-rwxr-xr-xconfigpm3
1 files changed, 3 insertions, 0 deletions
diff --git a/configpm b/configpm
index 19d0d718dd..c64af8a13b 100755
--- a/configpm
+++ b/configpm
@@ -38,6 +38,9 @@ sub import {
}
ENDOFBEG_NOQ
+die "Perl lib version ($myver) doesn't match executable version (\$])"
+ unless \$^V;
+
\$^V eq $myver
or die "Perl lib version ($myver) doesn't match executable version (" .
(sprintf "v%vd",\$^V) . ")";