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;