Subject: | alpha version ordering is broken |
Consider a simple test:
use version;
my $v = version->parse( "v0.11.2_4" );
print $v->normal, "\n";
If version < 0.9913 the test prints
v0.11.2_4
Internally it is represented as FOUR-component array [ 0, 11, 2, 4 ]. Semantics of Alpha version is not well-defined in the documentation, but I assume this is proper result, because it gives order: v0.11.2 < v0.11.2_4 < v.0.11.3.
If version >= 0.0013, the test prints
v0.11.24
Internally it is represented as THREE-component array [ 0, 11, 24 ].
It breaks version ordering. Current version order is quite useless: v0.11.2 < v0.11.3 < ... < v0.11.23 < v.0.11.2_4.