Re: How to check if a DateTime is invalid (again - but this time without using eval)?
[email protected] (Binarus) Mon, 3 Jul 2017 09:49:38 +0200
| Newsgroups | perl.datetime |
|---|---|
| Message-ID | <[email protected]> |
On 02.07.2017 22:02, Eric Brine wrote: > `eval BLOCK` is very different `eval EXPR`. > > The latter involves the need to generate Perl code, and ask the related > risks. That's not the case for the former, which is the right tool for > the job here. > Thank you very much for your answer. I have decided to solve my problem by using a block eval, probably with a local DIE handler added in the block (but still thinking about whether this is necessary - I won't use other DIE handlers and don't need to "catch errors" at any other places). Regards, Binarus