Using die. The catch is that Perl's calls DESTROY inside of an eval (effectively) so it doesn't go far.
If you want to throw something catchable outside of DESTROY, it'll have to be thrown from outside of DESTROY.
In reply to Re^3: Throw from within a DESTROY block
by ikegami
in thread Throw from within a DESTROY block
by ribasushi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |