Skip Menu |

This queue is for tickets about the Perl-MinimumVersion CPAN distribution.

Report information
The Basics
Id: 94590
Status: new
Priority: 0/
Queue: Perl-MinimumVersion

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

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



When scanning a file with: my $ver = $pmv->minimum_version; my $reason = $pmv->minimum_explicit_reason; Invalid version format (non-numeric data) at /Users/ether/.perlbrew/libs/19.10@std/lib/perl5/Perl/MinimumVersion.pm line 278. This is because a Perl::MinimumVersion::Reason object is being compared to a version object. The reason object needs a <=> overload.
Code correction my $pmv = Perl::MinimumVersion->new( \$file_content ); my $reason = $pmv->minimum_explicit_reason;