In Perl_apply, the name of the op can be found from PL_op_name, instead
[p5sagit/p5-mst-13.2.git] / lib / warnings.pm
index 5fe108d..7822f92 100644 (file)
@@ -295,7 +295,8 @@ $All = "" ; vec($All, $Offsets{'all'}, 2) = 3 ;
 
 sub Croaker
 {
-    require Carp;
+    require Carp::Heavy; # this initializes %CarpInternal
+    local $Carp::CarpInternal{'warnings'};
     delete $Carp::CarpInternal{'warnings'};
     Carp::croak(@_);
 }