in reply to Comedy of StdErrs

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.";