comparisons against $ExtUtils::MakeMaker::VERSION were warning when
authorTony Cook <tony@develop=help.com>
Tue, 29 Aug 2006 07:20:42 +0000 (07:20 +0000)
committerTony Cook <tony@develop=help.com>
Tue, 29 Aug 2006 07:20:42 +0000 (07:20 +0000)
that had an _ in it.  We now eval it to prevent the warning.

CountColor/Makefile.PL
DynTest/Makefile.PL
Flines/Makefile.PL
ICO/Makefile.PL
Makefile.PL
Mandelbrot/Makefile.PL

index 19e57311f7b604ec37f5d48229c1951237f23fd8..ada8e45adfbbe5051d09a189d4fd7941b3f981de 100644 (file)
@@ -9,7 +9,8 @@ my %opts =
    OBJECT => 'CountColor.o',
    INC => '-I..',
   );
-if ($ExtUtils::MakeMaker::VERSION > 6.06) {
+my $MM_ver = eval $ExtUtils::MakeMaker::VERSION;
+if ($MM_ver > 6.06) {
   $opts{AUTHOR} = 'Tony Cook <tony@imager.perl.org>';
   $opts{ABSTRACT} = 'Color Count an Imager image';
 }
index d749d6398301a7c54035b3cfc2f8b4ff9057960d..ff537ce33ed960e1497d30e11c486414b3b6256d 100644 (file)
@@ -9,7 +9,8 @@ my %opts =
    OBJECT => 'DynTest.o linstretch.o',
    INC => '-I..'
   );
-if ($ExtUtils::MakeMaker::VERSION > 6.06) {
+my $MM_ver = eval $ExtUtils::MakeMaker::VERSION;
+if ($MM_ver > 6.06) {
   $opts{AUTHOR} = 'Tony Cook <tony@imager.perl.org>';
   $opts{ABSTRACT} = 'Demo Imager filter extension';
 }
index 583a31759d06e0e123c97ee1d4f2f8e43e502161..e8e107f281f08cc2c2223369d06d291035b1db8d 100644 (file)
@@ -9,7 +9,8 @@ my %opts =
    OBJECT => 'Flines.o',
    INC => '-I..'
   );
-if ($ExtUtils::MakeMaker::VERSION > 6.06) {
+my $MM_ver = eval $ExtUtils::MakeMaker::VERSION;
+if ($MM_ver > 6.06) {
   $opts{AUTHOR} = 'Tony Cook <tony@imager.perl.org>';
   $opts{ABSTRACT} = 'Flines Imager filter extension';
 }
index 346d178f1911fa0a2c18dc0ffb47c4e268b8f427..e2d35cb4668c23bff9f3e9f3705c3b8e62986756 100644 (file)
@@ -9,7 +9,8 @@ my %opts =
    OBJECT => 'ICO.o msicon.o imicon.o',
    INC => '-I..'
   );
-if ($ExtUtils::MakeMaker::VERSION > 6.06) {
+my $MM_ver = eval $ExtUtils::MakeMaker::VERSION;
+if ($MM_ver > 6.06) {
   $opts{AUTHOR} = 'Tony Cook <tony@imager.perl.org>';
   $opts{ABSTRACT} = 'Icon Image file support';
 }
index 8cdb5ef5369f7f9017d01cc8310fcd77c6477243..b1338860044a0ecd24d4e56954610d2eb6a01a15 100644 (file)
@@ -171,11 +171,13 @@ my %opts=(
           PM             => gen_PM(),
          );
 
-if ($ExtUtils::MakeMaker::VERSION > 6.06) {
+# eval to prevent warnings about versions with _ in them
+my $MM_ver = eval $ExtUtils::MakeMaker::VERSION;
+if ($MM_ver > 6.06) {
   $opts{AUTHOR} = 'Tony Cook <tony@imager.perl.org>, Arnar M. Hrafnkelsson';
   $opts{ABSTRACT} = 'Perl extension for Generating 24 bit Images';
 }
-if ($ExtUtils::MakeMaker::VERSION > 6.10) {
+if ($MM_ver > 6.10) {
   $opts{NO_META} = 1;
 }
 
index af306dbbe8f54faae54dab5755d30c93cba0b285..7269726ee30278a83574aca9210546b64c557a45 100644 (file)
@@ -9,7 +9,8 @@ my %opts =
    OBJECT => 'Mandelbrot.o mandel.o',
    INC => '-I..'
   );
-if ($ExtUtils::MakeMaker::VERSION > 6.06) {
+my $MM_ver = eval $ExtUtils::MakeMaker::VERSION;
+if ($MM_ver > 6.06) {
   $opts{AUTHOR} = 'Tony Cook <tony@imager.perl.org>';
   $opts{ABSTRACT} = 'Mandelbrot Imager filter extension';
 }