avoid warnings from comparing a dev version number from Exporter
authorTony Cook <tony@develop-help.com>
Wed, 15 Jun 2011 12:12:48 +0000 (22:12 +1000)
committerTony Cook <tony@develop-help.com>
Wed, 15 Jun 2011 12:14:01 +0000 (22:14 +1000)
Imager.pm

index 769f09bf106743a1b9c65ea71853aa0ea7e4da4e..2dd2709314c2891a9a8349661c75a08d80e7d736 100644 (file)
--- a/Imager.pm
+++ b/Imager.pm
@@ -137,7 +137,8 @@ my %defaults;
 
 BEGIN {
   require Exporter;
-  if ($Exporter::VERSION < 5.57) {
+  my $ex_version = eval $Exporter::VERSION;
+  if ($ex_version < 5.57) {
     @ISA = qw(Exporter);
   }
   $VERSION = '0.83';