in reply to pause/wait command?

perldoc -f sleep

while( sleep 120 ) { # do what you want }

Replies are listed 'Best First'.
Re^2: pause/wait command?
by ChrisJ-UK (Novice) on Jul 28, 2004 at 12:52 UTC

    I've never seen it used as the condition of a while loop. I rather like that.

    What I've always done it just inset it in the code

    while (#Files do not yet exist) { sleep(120); #check for files; }