Carp reporting from the wrong location with @CARP_NOT (Moose and Method Modifiers)
问题 This is a followup question to warnings::warnif( 'deprecated' … ) with carp?. here's a snippet of my code from Business::CyberSource on Github note: the previous answer (in the previous question), and adding of @CARP_NOT have demonstrated that warnings::warnif uses carp . I attempted to substitute carp directly, the behavior was exactly the same. our @CARP_NOT = ( __PACKAGE__, qw( Class::MOP::Method::Wrapped ) ); around BUILDARGS => sub { my $orig = shift; my $class = shift; my $args = $class