Or is there another way to catch the error?
As Time::Local calls croak() when a date is out of range, not really.
You could, of course, write a wrapper that would always call timegm() in an eval for you.
Or, if you aren't adverse to doing your own bounds checking or it isn't necessary, you could import the timegm_nocheck() function and use that instead.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Comedy of StdErrs
by sauoq
in thread Comedy of StdErrs
by abitkin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |