Re: How to check if a DateTime is invalid (again - but this time without using eval)?

[email protected] (Zefram) Sun, 2 Jul 2017 11:24:21 +0100
Newsgroups perl.datetime
Message-ID <[email protected]>
Binarus wrote:
>- Most people recommend to "catch the error" DateTime throws when
>encountering such date-times, but if I got it right, that always
>involves eval, even when using modules like Try:Tiny and the like, so I
>don't want to do that.

Do this.  eval is the right tool for the job.

-zefram