in reply to cron functionality mimic in perl scripting
Have a look at how Schedule::Cron does it, and then program the same thing yourself. Or, you could just use Schedule::Cron. See Yes, even you can use CPAN and local::lib.