From: Peter Rabbitson Date: Sat, 19 Mar 2011 23:34:35 +0000 (+0000) Subject: Stop importing Carp functions X-Git-Tag: v1.001000~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FClass-C3-Componentised.git;a=commitdiff_plain;h=f8b4872f7016b0fc26b7606591e4c77cf768a0e6 Stop importing Carp functions --- diff --git a/Changes b/Changes index c7d3974..0f95060 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Class-C3-Componentised + Stop importing Carp functions (and thus polluting the inheritor + namespaces) + 1.0008 24 Feb 2011 Fix inject_base regression introduced during optimizations in 1.0007 diff --git a/lib/Class/C3/Componentised.pm b/lib/Class/C3/Componentised.pm index 8d3058a..a86108a 100644 --- a/lib/Class/C3/Componentised.pm +++ b/lib/Class/C3/Componentised.pm @@ -47,7 +47,7 @@ use warnings; # Therefore leaving it in indefinitely. use MRO::Compat; -use Carp; +use Carp (); our $VERSION = 1.0008; @@ -151,7 +151,7 @@ sub ensure_class_loaded { if ($class->can('throw_exception')) { $class->throw_exception($@); } else { - croak $@; + Carp::croak $@; } };