Andreas J. Koenig wrote:
When CPAN.pm calculates the number, it never has trailing zeroes, when
version.pm calculates the number, it often appends trailing zeroes.

No longer the case; version-0.7203 now returns the same string that was used to initialize a version object as the default stringification. The internal representation is no longer overtly visible (though you can get it via ->numify or ->normal). The one time that the string input isn't equal to the string output is qv() without a leading 'v' and only one decimal place, which appears to be the case here:

        use version; our $VERSION = qv('2.004');

qv() is not a generic-version-object-creation function; it forces the extended version interpretation. The above should be either of:

        use version; our $VERSION = version->new('2.004');
        use version; our $VERSION = qv('v2.4.0');

with the former probably more appropriate in this case (since that matches what CPAN thinks the $VERSION is)...

John

--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

Reply via email to