Front page | perl.perl5.porters |
Postings from December 2014
Re: *-couragement of $^V
Thread Previous
|
Thread Next
From:
John Peacock
Date:
December 9, 2014 02:41
Subject:
Re: *-couragement of $^V
Message ID:
5486613A.1020109@havurah-software.org
On 12/08/2014 09:23 PM, Leon Timmermans wrote:
> The one things $^V is good for is producing a pretty user readable perl
> version, like «perl -e 'printf "%vd\n", $^V'». It might have been a lot
> more useful if it was just that sort of string. The representation
> change means that simple usages are often wrong and most complicated
> usages are typically also possible with $].
$ perl -E 'say $^V'
v5.18.2
$ perl -E 'say $^V'
v5.16.0
$ perl -le 'print $^V'
v5.12.4
$ perl -le 'print $^V'
v5.10.1
I'm sick and tired of all of the bitching about version objects. I was
going to ignore this thread because I'm completely burned out with p5p
in general. But I just thought I'd point out that $^V has always DTRT
when printed, as designed, since version objects were brought into the
core. It was a poor design that had bare v-string exposed ever in $^V
prior to 5.9 (which is the only time you have to use %vd).
John
Thread Previous
|
Thread Next