From: Bram Date: Thu, 4 Aug 2005 23:55:33 +0000 (+0200) Subject: warnings.pl/pm: Croaker function: bug (perl v5.8, v5.9) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dbab294c68e8160ef916906a4beca1da8c0c2ec5;p=p5sagit%2Fp5-mst-13.2.git warnings.pl/pm: Croaker function: bug (perl v5.8, v5.9) Message-Id: <42F28ED5.CFFDCCFD@wizbit.be> p4raw-id: //depot/perl@25888 --- diff --git a/lib/warnings.pm b/lib/warnings.pm index 85ce3de..7822f92 100644 --- a/lib/warnings.pm +++ b/lib/warnings.pm @@ -296,6 +296,7 @@ $All = "" ; vec($All, $Offsets{'all'}, 2) = 3 ; sub Croaker { require Carp::Heavy; # this initializes %CarpInternal + local $Carp::CarpInternal{'warnings'}; delete $Carp::CarpInternal{'warnings'}; Carp::croak(@_); } diff --git a/warnings.pl b/warnings.pl index bc6b42a..94cc34f 100644 --- a/warnings.pl +++ b/warnings.pl @@ -564,6 +564,7 @@ $All = "" ; vec($All, $Offsets{'all'}, 2) = 3 ; sub Croaker { require Carp::Heavy; # this initializes %CarpInternal + local $Carp::CarpInternal{'warnings'}; delete $Carp::CarpInternal{'warnings'}; Carp::croak(@_); }