try { my $obj = Class->new(); # Class has DESTROY method die "error message"; } catch { die "Failed with error: $_"; }
- Upgrade to 5.14
try { my $obj = Class->new(); # Class has DESTROY method die "error message"; } catch { die "Failed with error: $_"; }