http://www.perlmonks.org?node_id=362687

This question has been answered in perlfaq4 using Date::Calc and working with use strict.

»Jan 19 2038« is not perl's problem. It depends on your libc and/or your 32/64 bit processor. With these problems your code only works until 2**31 - 1 (at least at my machine).

-- Frank