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; }
In reply to Re^3: Issue with time() in loop?
by Errto
in thread Issue with time() in loop?
by Elijah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |