On Fri May 15 06:59:28 2009, STEFFENW wrote:
Show quoted text> for my $string ( qw(1 1.1 1.1.1) ) {
> print version->new($string), q{ }, qv($string), "\n" };
> }
version->new() is not the same thing as qv(). When you use qv() you are
asserting that this is an extended version (dotted-decimal), even if
there is only a single decimal place.
Show quoted text> 1 1
> 1.1 v1.1
> 1.1.1 1.1.1
That leading 'v' on the second line is there because that is the only
way to disambiguate a decimal version (1.1) from a dotted-decimal
version (v1.1 equivalent to 1.1.0).
I'm working on completely rewriting the documentation to version.pm to
make this clearer in the future...
John