Subject: | Fails to handle module versions in dotted decimal format |
Hello,
As usual, thanks again for such an excellent module! I noticed a minor
bug when comparing my dists against their prereqs today. It kept saying
"Test::NoPlan" was specified as "any version" but the prereq showed it
was listed as "0.0.6"!
The bug is line 70 in v1.02:
$ver = 'any version' if $ver == 0;
Doing a numeric comparison makes Perl convert 0.0.6 into 0 ( or
something entirely funky ) and naturally it screws up. The fix is to
change it into an 'eq' comparison, which will work.
$ver = 'any version' if $ver eq '0';
If you want to really dig around and figure out why it happens, you're
welcome to do it ( homework exercise for you, ha! )
Thanks again!
--
~Apocalypse