in reply to pause/wait command?


You can also use alarm (quite similar to sleep):
perldoc -f alarm :)

-DBC

Replies are listed 'Best First'.
Re^2: pause/wait command?
by nothingmuch (Priest) on Jul 28, 2004 at 13:00 UTC
    Alarm is useful if you want to remind yourself to check for the files in two minutes, but do something else in the meanwhile. It's also good for timing out blocking system calls.

    Frankly I don't see how it can be useful here, unless you do something like

    $SIG{ALRM} = 'IGNORE'; alarm 120; sleep; # forever, or until interrupted
    Which is, IMHO, a redundant and less reliable way to get the same effect as
    sleep 120;
    -nuffin
    zz zZ Z Z #!perl