[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] probably a simple perl question



On Sun, 4 Jun 2000, Justin Shore wrote:

> I have a simple question that I can't seem to answer.  How do I make 
> a perl script pause for a given # of seconds before continuing wo/ 
> any user interaction?  

sleep(5);

On a Mac, sleep() has the added bonus of giving other processes time, and
also makes MacPerl respond more quickly to cmd-. halts.

if you are forking, which seems natural given your application, you can
use wait() for a child process to terminate.  This won't work on a Mac,
AFAIK, since there is no (current) meaning to fork(), etc.


--
MattLangford 


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org