Subject: | Treatment of underscore versions inconsistent with version.pm |
Consider the 0.98_05 release of Test::More:
its code has:
our $VERSION = '0.98_05';
$VERSION = eval $VERSION;
Test::More->VERSION returns 0.9805, but Module::Metadata->new_...->version returns 0.98_05. This results in various comparisons failing, e.g. version.pm objects.
(If modules with underscores *must* eval their $VERSION on the same line, so that Module::Metadata can take that into account, then we should fix all core modules that violate this, and think about ways of communicating this issue - metrics in Module::CPANTS::Analyse and perlcritic? Can we do something in PAUSE?)