mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
Version semantics changed in perl 5.10
This commit is contained in:
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user