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

Re: *-couragement of $^V

Thread Previous | Thread Next
From:
Karl Williamson
Date:
December 12, 2014 04:52
Subject:
Re: *-couragement of $^V
Message ID:
548A7482.3090306@khwilliamson.com
On 12/08/2014 09:27 PM, Father Chrysostomos wrote:
> John Peacock wrote:
>> FWIW, this works from 5.7.3 onwards (courtesy of the "magic v-string"
>> patch):
>>
>>> $ perl -le 'print ($^V > 5.7.3)'
>>> 1
>>>
>>> $ perl -v
>>>
>>> This is perl, v5.8.1 built for x86_64-linux
>>
>> That form doesn't even require version objects.  What am I missing?
>
> $ /opt/bin/perl5.8.8 -le 'print ($^V > 5.10.0)'
> 1
>
> I am surprised that you, of all people, would make the > vs
> gt mistake.
>

I found I just made this mistake too.

Would it be possible to warn if a version object is compared with a 
numerical operator?

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