Subject: | Carp exceptions are discarded during DEMOLISH processing? |
Date: | Thu, 1 Nov 2012 11:26:33 -0400 |
To: | bug-class-std [...] rt.cpan.org |
From: | J M <jpm919 [...] gmail.com> |
Exceptions within DEMOLISH are lost. What is the explanation for this (I
couldn't find an applicable post)? . Example below.
Thanks,
Jason
# scratch.pm
package scratch;
use strict;
use warnings;
use Carp;
use Class::Std;
sub DEMOLISH {
carp "demolish warning\n";
croak "demolish croak\n";
}
1;
# /scratch.pm
# scratch.pl
use strict;
use warnings;
use scratch;
use Carp;
my $obj = scratch->new();
# /scratch.pl