Subject: | Carp ignores 'Moose::Object' in @CARP_NOT |
david@nio:~/dev/Foo$ perl foo.pl
foo at /home/david/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0/x86_64-linux/Moose/Object.pm line 55.
#!/usr/bin/env perl
use strict;
use warnings;
{
package ClassB;
use Moose;
use Carp;
our @CARP_NOT;
sub BUILD {
local @CARP_NOT = qw/Class::MOP::Method Moose::Object/;
croak "foo";
}
1;
}
my $obj = ClassB->new;