Stop importing Carp functions
[p5sagit/Class-C3-Componentised.git] / lib / Class / C3 / Componentised.pm
index 8d3058a..a86108a 100644 (file)
@@ -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 $@;
     }
   };