in reply to Re^2: Issue with time() in loop?
in thread Issue with time() in loop?
and lo and behold, it works.#!perl use strict; use warnings; my $endtime = time + 30; while (1) { if (time > $endtime) { print "30 seconds have passed\n"; exit; } sleep 1; }
|
|---|