Mon Mar 18 15:29:56 2013ether [...] cpan.org - Ticket created
Subject:
VERSION assertions are not detected
use Foo;
Foo->VERSION(1.0);
...only results in a prereq of Foo => 0, not Foo => 1.0.
Mon Mar 18 16:26:46 2013rjbs [...] cpan.org - Correspondence added
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
Mon Mar 18 16:26:47 2013The RT System itself - Status changed from 'new' to 'open'
Sun Nov 03 21:47:59 2013rjbs [...] cpan.org - Correspondence added
I don't know why you'd do this… but I made it work the same was a ->VERSION after require.
--
rjbs
Sun Nov 03 21:48:00 2013rjbs [...] cpan.org - Status changed from 'open' to 'resolved'