Front page | perl.perl5.porters |
Postings from December 2014
Re: *-couragement of $^V
Thread Previous
|
Thread Next
From:
Abigail
Date:
December 8, 2014 21:47
Subject:
Re: *-couragement of $^V
Message ID:
20141208214737.GA20978@almanda.fritz.box
On Mon, Dec 08, 2014 at 03:30:08PM -0500, Ricardo Signes wrote:
> A few times lately, $^V has come up in the context of being "the better way to
> check the version than $]." This surprised me, because I always thought it was
> largely considered better avoided.
>
> I suggest that given the general confusion around v-strings and version
> objects, as well as the fact that $^V has changed its behavior in the past, it
> is not actually better than $]. Since $] always works, and always works the
> same way, we should encourage its use rather than $^V's. We can accomplish
> that by discouraging the use of $^V, in favor of $], in the docs.
>
> Yes?
+1.
I've always used $], and while I've seen lots of code check for a version
using $], I don't recall ever seeing $^V.
(The manual page says $^V was added in v5.6.0; I didn't even know it existed
until I read the message I quoted).
Abigail
Thread Previous
|
Thread Next