Skip Menu |

This queue is for tickets about the version CPAN distribution.

Report information
The Basics
Id: 46108
Status: resolved
Priority: 0/
Queue: version

People
Owner: Nobody in particular
Requestors: STEFFENW [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.76
Fixed in: (no value)



Subject: v in version string but at qv only and not everytime
per -v This is perl, v5.8.8 built for MSWin32-x86-multi-thread ---------------------------------------------------------------- use version; for my $string ( qw(1 1.1 1.1.1) ) { print version->new($string), q{ }, qv($string), "\n" }; } 1 1 1.1 v1.1 1.1.1 1.1.1
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
WONTFIX. Rewriting documentation to make this behavior (which is correct but confusing) clearer.