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


in reply to timelocal error when executed twice.

The timelocal calls are not identical, you have changed the variables. Can you show the actual code?