Comment 7 for bug 646647

Revision history for this message
Daniƫl van Eeden (dveeden) wrote :

The comment says that the new $^V is used on anything newer that 5.6.0, which doesn't seem to be true.

The $perl_version which is compared with $^V doesn't contain dots or a leading v and shouldn't be compared as if it were a number.

---------------------------------------------------------
$ perl --version

This is perl, v5.8.8 built for i486-linux-gnu-thread-multi

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

$ perl -e 'print $^V . "\n"';

$
---------------------------------------------------------

---------------------------------------------------------
$ perl --version

This is perl, v5.10.1 (*) built for i486-linux-gnu-thread-multi

Copyright 1987-2009, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

$ perl -e 'print $^V . "\n"';
v5.10.1
$
---------------------------------------------------------