Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 22584
Status: resolved
Priority: 0/
Queue: CPAN

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: Installed versions of 0 are turned into undef by inst_version()
When an installed module has a version number of 0, inst_version() is returning back undef because of this line in CPAN.pm: 7247: $have = MM->parse_version($parsefile) || "undef"; parse_version() already transforms undef into the string "undef" for you since at least 5.42 (shipped with 5.4.5) so I think you're safe simply removing the || "undef" part.
Fixed in 1.88_63. Thanks!