RT for rt.cpan.org
Skip Menu
|
Bug #98744 for version: version->new("1.02_003")->numify return value is incorrect
Active bugs
Resolved bugs
Rejected bugs
This queue is for tickets about the
version CPAN distribution
.
Report information
The Basics
Id:
98744
Status:
resolved
Priority:
0/
Queue:
version
People
Owner:
Nobody in particular
Requestors:
haarg [...] haarg.org
Cc:
ether [...] cpan.org
AdminCc:
Bug Information
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)
History
Show all quoted text
Wed Sep 10 01:11:28 2014
haarg [...] haarg.org - Ticket created
Subject:
version->new("1.02_003")->numify return value is incorrect
version->new("1.02_003")->numify returns "1.02_030", which is incorrect.
Wed Sep 10 13:39:26 2014
ether [...] cpan.org - Cc ETHER added
Fri Jan 01 11:29:08 2016
jpeacock [...] cpan.org - Correspondence added
It appears the parsing code for "short" (less than 3 digit) alphas is wrong: $ perl -I blib/lib/ -I blib/arch/ -Mversion -MData::Dumper -e 'print Dumper(version->new("1.02_003"))' $VAR1 = bless( { 'version' => [ 1, 20, 30 ], 'original' => '1.02_003', 'width' => 2, 'alpha' => 1 }, 'version' );
Fri Jan 01 11:29:08 2016
The RT System itself - Status changed from 'new' to 'open'
Fri Jan 01 13:01:48 2016
jpeacock [...] cpan.org - Correspondence added
Resolved in 0.9913
Fri Jan 01 13:01:49 2016
jpeacock [...] cpan.org - Status changed from 'open' to 'resolved'