don't rely on Carp::confess existing when compiling generated code
Jesse Luehrs [Sun, 21 Aug 2011 23:07:06 +0000 (18:07 -0500)]
lib/Class/MOP/Method/Accessor.pm

index fa1db24..aa7b8b8 100644 (file)
@@ -153,7 +153,7 @@ sub _generate_reader_method_inline {
 
 sub _inline_throw_error {
     my $self = shift;
-    return 'confess ' . $_[0];
+    return 'Carp::confess ' . $_[0];
 }
 
 sub _generate_writer_method {