sleep(1) until ((localtime)[2] == 8); # it's now 8:00am.. do your thing.