develooper Front page | perl.perl5.porters | Postings from December 2014

Re: *-couragement of $^V

Thread Previous | Thread Next
John Peacock
December 9, 2014 02:41
Re: *-couragement of $^V
Message ID:
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'

$ perl -E 'say $^V'

$ perl -le 'print $^V'

$ perl -le 'print $^V'

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).


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About