in reply to Running subroutines at specific times

You can use an event based framework like Event to do that. The repeat.t script on the demo directory from this module shows you how to set timers.

As your requirements are quite simple, you can also write a simple scheduler yourself around the sleep function.