In WWW::Mechanize's Makefile.PL I see some version comparisons using the
"ge" operator. This will fail in some distant future:
#!/usr/bin/perl -w
$ExtUtils::MakeMaker::VERSION = '10.01';
if ( $ExtUtils::MakeMaker::VERSION ge '6.45_01' ) {
warn "yes";
} else {
warn "no";
}
__END__
Yes, I know, there are ugly warnings if comparing numerically against a
version with underscore. To fix this, users often do "eval" such a version
number:
$ perl -we '$x = eval "6.45_01"; warn $x'
6.4501 at -e line 1.
Regards,
Slaven
esert...@yahoo.de reported on Oct 11, 2009
Details
Imported from Google Code issue 135 via archive
WM
Comments
petda...@gmail.com commented on May 4, 2011 :
WM
mark.sto...@gmail.com commented on Feb 1, 2013 :