From: Gurusamy Sarathy <gsar@cpan.org>
Date: Fri, 17 Mar 2000 17:00:05 +0000 (+0000)
Subject: make Config.pm report sane errors with older perls
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=de98c55394539e7de6972ea206c9d6db5b1fd2a3;p=p5sagit%2Fp5-mst-13.2.git

make Config.pm report sane errors with older perls

p4raw-id: //depot/perl@5787
---

diff --git a/configpm b/configpm
index 19d0d71..c64af8a 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) . ")";