This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Ignore mismatched versions between Carp and Carp::Heavy if the version discrepancy...
authorKaren Etheridge <ether@cpan.org>
Thu, 3 Apr 2014 18:08:20 +0000 (11:08 -0700)
committerTony Cook <tony@develop-help.com>
Wed, 28 May 2014 04:52:42 +0000 (14:52 +1000)
Carp::Heavy's guts were merged into Carp in 1.12. After this point, if a
different version of Carp::Heavy is loaded than Carp, no harm will be done and
the error can be ignored.

dist/Carp/lib/Carp.pm
dist/Carp/lib/Carp/Heavy.pm

index e1dca01..99b6945 100644 (file)
@@ -87,7 +87,7 @@ BEGIN {
     }
 }
 
-our $VERSION = '1.3301';
+our $VERSION = '1.34';
 
 our $MaxEvalLen = 0;
 our $Verbose    = 0;
index a14672b..86237cb 100644 (file)
@@ -2,10 +2,12 @@ package Carp::Heavy;
 
 use Carp ();
 
-our $VERSION = '1.3301';
+our $VERSION = '1.34';
 
-my $cv = defined($Carp::VERSION) ? $Carp::VERSION : "undef";
-if($cv ne $VERSION) {
+# Carp::Heavy was merged into Carp in version 1.12.  Any mismatched versions
+# after this point are not significant and can be ignored.
+if(($Carp::VERSION || 0) < 1.12) {
+       my $cv = defined($Carp::VERSION) ? $Carp::VERSION : "undef";
        die "Version mismatch between Carp $cv ($INC{q(Carp.pm)}) and Carp::Heavy $VERSION ($INC{q(Carp/Heavy.pm)}).  Did you alter \@INC after Carp was loaded?\n";
 }