From: Jesse Luehrs Date: Sun, 21 Aug 2011 23:07:06 +0000 (-0500) Subject: don't rely on Carp::confess existing when compiling generated code X-Git-Tag: 2.0300~119 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b4c122a071543bb137ef7e2caa10e25027f38193;p=gitmo%2FMoose.git don't rely on Carp::confess existing when compiling generated code --- diff --git a/lib/Class/MOP/Method/Accessor.pm b/lib/Class/MOP/Method/Accessor.pm index fa1db24..aa7b8b8 100644 --- a/lib/Class/MOP/Method/Accessor.pm +++ b/lib/Class/MOP/Method/Accessor.pm @@ -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 {