Subject: | ::Module->package_is_perl_code : problem comparing version strings |
CPANPLUS::Module->package_is_perl_code() uses operators '>' and '>=' to
compare version strings.
This is not reliable as it has problems with version number containing
underscores or worse.
Use version.pm instead:
#return if $self->version > $self->installed_version;
my $v = version->new($self->version);
return if $v gt version->new($self->installed_version);
### if the package is newer or equal to the corelist,
### then it's dual-lifed
#return if $self->version >= $core;
return if $v ge version->new($core);