On Thu, 16 Feb 2012 23:02:23 +0900, lembark@wrkhors.com wrote:
Show quoted text> On Wed, 15 Feb 2012 07:21:46 -0500
> "Yuki Ibe via RT" <bug-FindBin-libs@rt.cpan.org> wrote:
>
test
Show quoted text> > > being for $^V being an object (via ref $^V ? old : new).
> >
> > The "ref $^V ? 'curr' : '5_8'" solution works for me with 5.8 and
5.10,
Show quoted text> > but why not go with either of these two, which are more
straightforward?
Show quoted text> >
> > $] < 5.010 ? '5_8' : 'curr'
> >
> > !$^V || $^V lt v5.10 ? '5_8' : 'curr'
>
> From perldoc perlvar: "Deprecated in Perl 5.6."
>
Ah okay, I wasn't aware that $] was officially deprecated. However, it
has
been valid to compare $^V and vN.N.N with the string comparison
operators
(cmp, eq, ne, lt, le, gt, ge) since 5.6.0 - as SPROUT also wrote:
Show quoted text > Since version objects have cmp overloading, you can use $^V ge
v5.10,
Show quoted text > which will work whether
> $^V is a version object or vstring.