while (1) { # Do stuff here; my $next = int((time + 3599)/3600) * 3600; sleep ($next - time); } [download]
In reply to Re^2: Pause Loop by salva in thread Pause Loop by pyro.699