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

Re: *-couragement of $^V

Thread Previous | Thread Next
David Golden
December 11, 2014 15:08
Re: *-couragement of $^V
Message ID:
On Tue, Dec 9, 2014 at 10:37 AM, Vincent Pit (VPIT) <>

> $^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 Golden <> Twitter/IRC: @xdg

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