See Bug in eval in pre-5.14 and the replies, there were/are a few remaining issues even after the major bug was fixed, it seems not until 5.28 - and I'd not trust the eval { ... }; if ($@) { ... } pattern anyway. So I'd always use the eval { ...; 1 } or do { ... } idiom without relying on $@.
In reply to Re: eval: Why use the 'Zombie error' idiom?
by haukex
in thread eval: Why use the 'Zombie error' idiom?
by DouglasDD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |