diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-10 01:18:04 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-10 01:18:04 +0000 |
commit | 0ff3fa1a9e904b2e8741c50731fed324d1b1afb7 (patch) | |
tree | a6b7d678741aad5d41e5eb388c08592e8c389318 /lib/Pod/Man.pm | |
parent | 4ff843088efaf20f33954a488d457e0ee0278019 (diff) | |
download | perl-0ff3fa1a9e904b2e8741c50731fed324d1b1afb7.tar.gz |
use $Config{version} rather than $] where appropriate
p4raw-id: //depot/perl@4777
Diffstat (limited to 'lib/Pod/Man.pm')
-rw-r--r-- | lib/Pod/Man.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Pod/Man.pm b/lib/Pod/Man.pm index 87de42efb3..9aadd42dea 100644 --- a/lib/Pod/Man.pm +++ b/lib/Pod/Man.pm @@ -338,9 +338,10 @@ sub initialize { # but we shouldn't need that any more. Get the version from the running # Perl. if (!defined $$self{release}) { - my ($version, $patch) = ($] =~ /^(.{5})(\d{2})?/); - $$self{release} = "perl $version"; - $$self{release} .= ", patch $patch" if $patch; + my ($rev, $ver, $sver) = ($] =~ /^(\d+)\.(\d{3})(\d{0,3})$/); + $sver ||= 0; $sver *= 10 ** (3-length($sver)); + $rev += 0; $ver += 0; $sver += 0; + $$self{release} = "perl v$rev.$ver.$sver"; } # Double quotes in things that will be quoted. |