Try::Tiny claims that up to 5.14, $@ was cleared at the beginning of the eval { block.
I think that also a destructor containing eval { can clear out $@, so the above idiom is necessary.
Using (for example) Try::Tiny helps avoiding that.
In reply to Re: eval: Why use the 'Zombie error' idiom?
by Corion
in thread eval: Why use the 'Zombie error' idiom?
by DouglasDD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |