in reply to Re: eval: Why use the 'Zombie error' idiom?
in thread eval: Why use the 'Zombie error' idiom?
{ # scope the `local` local $@; eval { do_something_that_might_die(); 1; } or do { my $error = $@; ## ?? No need for || 'Zombie error' ?? deal_w($error) || die; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: eval: Why use the 'Zombie error' idiom?
by hippo (Archbishop) on Oct 18, 2019 at 10:45 UTC | |
|
Re^3: eval: Why use the 'Zombie error' idiom?
by Corion (Patriarch) on Oct 18, 2019 at 10:04 UTC |