Permalink
Browse files

comparisons against $ExtUtils::MakeMaker::VERSION were warning when

that had an _ in it.  We now eval it to prevent the warning.
  • Loading branch information...
1 parent fe415ad commit c52cbef2d42c2ba770753a8902330bd9a1bf23df Tony Cook committed Aug 29, 2006
Showing with 14 additions and 7 deletions.
  1. +2 −1 CountColor/Makefile.PL
  2. +2 −1 DynTest/Makefile.PL
  3. +2 −1 Flines/Makefile.PL
  4. +2 −1 ICO/Makefile.PL
  5. +4 −2 Makefile.PL
  6. +2 −1 Mandelbrot/Makefile.PL
@@ -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';
}
View
@@ -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';
}
View
@@ -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';
}
View
@@ -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';
}
View
@@ -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;
}
@@ -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';
}

0 comments on commit c52cbef

Please sign in to comment.