Fix for Exporter error reporting behaviour
authorBen Tilly <ben_tilly@operamail.com>
Sat, 1 Dec 2001 06:34:48 +0000 (01:34 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 1 Dec 2001 16:31:02 +0000 (16:31 +0000)
Message-ID: <3C0D1B9A@operamail.com>

p4raw-id: //depot/perl@13406

lib/Exporter.pm
lib/Exporter/Heavy.pm

index ce89c59..9088a31 100644 (file)
@@ -8,7 +8,8 @@ no strict 'refs';
 our $Debug = 0;
 our $ExportLevel = 0;
 our $Verbose ||= 0;
-our $VERSION = '5.563';
+our $VERSION = '5.564';
+$Carp::Internal{Exporter} = 1;
 
 sub export_to_level {
   require Exporter::Heavy;
@@ -56,7 +57,7 @@ sub import {
     return export $pkg, $callpkg, ($args ? @_ : ());
   }
   local $SIG{__WARN__} = 
-       sub {require Carp; local $Carp::CarpLevel = 1; &Carp::carp};
+       sub {require Carp; &Carp::carp};
   foreach my $sym (@_) {
     # shortcut for the common case of no type character
     *{"$callpkg\::$sym"} = \&{"$pkg\::$sym"};
index 4b1c2e2..abdae6c 100644 (file)
@@ -5,7 +5,7 @@ no strict 'refs';
 
 # On one line so MakeMaker will see it.
 require Exporter;  our $VERSION = $Exporter::VERSION;
-
+$Carp::Internal{"Exporter::Heavy"} = 1;
 our $Verbose;
 
 =head1 NAME