while(1) { if ($x > $y) { if (&timer(5) print "Zeit 5sek. sind abgelaufen"; } sleep 1 }