Front page | perl.perl5.porters |
Postings from December 2014
Re: *-couragement of $^V
Thread Previous
|
Thread Next
From:
Father Chrysostomos
Date:
December 12, 2014 05:37
Subject:
Re: *-couragement of $^V
Message ID:
20141212053737.30913.qmail@lists-nntp.develooper.com
Karl Williamson wrote:
> On 12/08/2014 09:27 PM, Father Chrysostomos wrote:
> > $ /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?
Comparing a version object with a numerical operator is not a problem.
In 5.6-8, $^V is not a version object, but a dualvar. So you can do
$^V >= 5.01 or $^V ge v5.10 and it will work correctly in all versions
since 5.6.0.
Thread Previous
|
Thread Next