Version semantics changed in perl 5.10

This commit is contained in:
Jamie Cameron
2008-08-04 23:27:20 +00:00
parent e2536f52b1
commit c1c889af0a
2 changed files with 14 additions and 1 deletions

View File

@ -386,5 +386,18 @@ if (&foreign_exists("mount")) {
return 0;
}
# get_nice_perl_version()
# Returns the Perl version is human-readable format
sub get_nice_perl_version
{
local $ver = $^V;
if ($ver =~ /^v/) {
return $ver;
}
else {
return join(".", map { ord($_) } split(//, $^V));
}
}
1;

View File

@ -3,7 +3,7 @@
# Display installed perl modules and a form for installing new ones
require './cpan-lib.pl';
$ver = join(".", map { ord($_) } split(//, $^V));
$ver = &get_nice_perl_version();
&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1, 0,
undef, undef, undef, &text('index_pversion', $ver));
&ReadParse();