Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 84029
Status: resolved
Priority: 0/
Queue: Perl-PrereqScanner

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

Bug Information
Severity: Normal
Broken in: 1.015
Fixed in: (no value)



Subject: VERSION assertions are not detected
use Foo; Foo->VERSION(1.0); ...only results in a prereq of Foo => 0, not Foo => 1.0.
On 2013-03-18 15:29:56, ETHER wrote: Show quoted text
> use Foo; > Foo->VERSION(1.0); > > ...only results in a prereq of Foo => 0, not Foo => 1.0.
Any implementation of this will need to be careful not to detect: require Foo; if ($x) { Foo->VERSION(2); } else { Foo->VERSION(1); } as a requirement of 2. -- rjbs
I don't know why you'd do this… but I made it work the same was a ->VERSION after require. -- rjbs