Re: How to check if a DateTime is invalid (again - but this time without using eval)?
[email protected] (Zefram) Mon, 10 Jul 2017 21:44:15 +0100
| Newsgroups | perl.datetime |
|---|---|
| Message-ID | <[email protected]> |
Thomas (HFM) Wyant wrote:
>One of the edge cases with eval {} is the possibility that $@ gets
>clobbered before you get your hands on it.
The possibility of it being clobbered by a destructor was fixed in 5.14.
(Destructors that do this are considered buggy, for pre-5.14 perls,
and are individually easy to fix, so the problem is still manageable on
those perl versions.)
-zefram