mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +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;
|
||||
|
||||
|
Reference in New Issue
Block a user