X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=configpm;h=19d0d718dd095653a2b3dfcaf7a8a77dbe490b0f;hb=ccc2aad8d8e6103f3ad40cea21552777ca27f419;hp=8c53dbb7249c707087ee036ac905a704075dd0d2;hpb=5089c844b09b4bf70ddcc69a1b2c187381eabf0c;p=p5sagit%2Fp5-mst-13.2.git diff --git a/configpm b/configpm index 8c53dbb..19d0d71 100755 --- a/configpm +++ b/configpm @@ -17,7 +17,7 @@ my $glossary = $ARGV[1] || 'Porting/Glossary'; open CONFIG, ">$config_pm" or die "Can't open $config_pm: $!\n"; -$myver = $]; +$myver = sprintf "v%vd", $^V; print CONFIG <<'ENDOFBEG_NOQ', <<"ENDOFBEG"; package Config; @@ -38,8 +38,9 @@ sub import { } ENDOFBEG_NOQ -\$] == $myver - or die "Perl lib version ($myver) doesn't match executable version (\$])"; +\$^V eq $myver + or die "Perl lib version ($myver) doesn't match executable version (" . + (sprintf "v%vd",\$^V) . ")"; # This file was created by configpm when Perl was built. Any changes # made to this file will be lost the next time perl is built.