This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Retract #6826 as the #6828 should be do the same
authorJarkko Hietaniemi <jhi@iki.fi>
Sat, 26 Aug 2000 14:06:33 +0000 (14:06 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 26 Aug 2000 14:06:33 +0000 (14:06 +0000)
in a More Correct Way.

p4raw-id: //depot/perl@6838

installperl

index db6454a..84e51f4 100755 (executable)
@@ -113,10 +113,9 @@ find(sub {
 
 # print "[$_]\n" for sort keys %archpms;
 
-my $perlver = sprintf "%8.6f",$];
 my $ver = $Config{version};
-my $release = substr($perlver,0,3);   # Not used presently.
-my $patchlevel = substr($perlver,3,2);
+my $release = substr($],0,3);   # Not used presently.
+my $patchlevel = substr($],3,2);
 die "Patchlevel of perl ($patchlevel)",
     "and patchlevel of config.sh ($Config{'PERL_VERSION'}) don't match\n"
        if $patchlevel != $Config{'PERL_VERSION'};