How about just running your script via the cron daemon, or using Schedule::Cron ?
In reply to Re: sleep() but don't exit by Corion in thread sleep() but don't exit by Anonymous Monk