Actually, it is dying. It's just doing it within an eval. Check $@ to find the message you died with. Here's an example:
$ perl -le 'sub DESTROY { die "dead" }; { bless \my $o } print $@;' (in cleanup) dead at -e line 1.
Edit: Minimalized the example.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: die & DESTROY - but not at the same time?
by sauoq
in thread die & DESTROY - but not at the same time?
by mildside
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |