in reply to using perl for a cron job

cron allows you execute long running jobs, but it's safer that you handle the timeouts of your application by doing something like that:

$SIG{ALRM} = sub { die "Game over!"; } alarm(10); sleep(20);

More info on perlipc.

Igor 'izut' Sutton
your code, your rules.