in reply to Re: Re (tilly) 1: Reverse Inheritance Irritance
in thread Reverse Inheritance Irritance
See it?my $test = sub {bless {}}; $test->(); $test->(); $test->(); sub DESTROY { print "Calling DESTROY\n"; die "But you won't see this message\n"; }
DESTROY is called in an eval. Since my code was only putting out output within a confess, that output was trapped. So I saw nothing, the script kept on going, and I thought that DESTROY wasn't being called. When in fact it is...
Mystery solved. :-)
|
---|