Skip Menu |

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)



Subject: version->new("1.02_003")->numify return value is incorrect
version->new("1.02_003")->numify returns "1.02_030", which is incorrect.
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' );
Resolved in 0.9913