Front page | perl.perl5.porters |
Postings from December 2014
Re: *-couragement of $^V
Thread Previous
|
Thread Next
From:
David Golden
Date:
December 11, 2014 15:08
Subject:
Re: *-couragement of $^V
Message ID:
CAOeq1c-+UY2AJur+97_wLbaXyXs0UxythiN5G8Kj69HxKP6Sjg@mail.gmail.com
On Tue, Dec 9, 2014 at 10:37 AM, Vincent Pit (VPIT) <perl@profvince.com>
wrote:
> $^V being a version object is actually quite a good reason *not* to use
> it. version objects should have been restricted to Perl module versions,
> instead of forcefully trying to conflate perl versions in them as well.
>
>
That ship has already sailed. The question is whether we should sink the
ship before it actually reaches useful waters.
> Anyway, if you want to check for perl's version, why would you ever want
> to use the least available syntax between $] and $^V ? This kinda defeats
> the whole point of the check (in the same way as "use 5.10.1" vs "use
> 5.010_001", but don't get me started on that).
>
My point was that -- at some point in the future -- 5.8 will be behind us.
At which point, comparison against $^V is a little more dwimmy.
I remember when I used to avoid "our $VERSION" or "use warnings" because I
wanted to be compatible back to 5.005. Thankfully, I don't have to do that
anymore. To me, this is the same sort of thing.
David
--
David Golden <xdg@xdg.me> Twitter/IRC: @xdg
Thread Previous
|
Thread Next