develooper Front page | perl.perl5.porters | Postings from August 2016

Re: [perl #128786] making $^V a version object broke functionality

Thread Previous | Thread Next
From:
Zefram
Date:
August 4, 2016 07:50
Subject:
Re: [perl #128786] making $^V a version object broke functionality
Message ID:
20160804075022.GU24721@fysh.org
Aristotle Pagaltzis wrote:
>specifically, always a single digit '5' -- plus a dot and then 6 digits
>after that.

No, it's not of that form on every version.  On 5.8.0 it's "5.008",
only three digits after the dot.  And it's not always been constructed
as a string; these shorter strings arise by it being constructed as an
NV and converted.  The string form is certainly the form to work from,
because the NV value used to be constructed badly, but it is necessary
to be more forgiving about the digit pattern.  My sprintf formulation
is a valid way of canonicalising the digit pattern.

-zefram

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About