Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
while ( (not defined ($key = ReadKey (-1))) && ($dead != -1) ) { $dead = waitpid(-1,&WNOHANG); }
while ( (not defined ($key = ReadKey (0))) && ($dead != -1) ) { $dead = waitpid(-1,&WNOHANG); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Term::Readkey and waitpid
by gregorovius (Friar) on May 16, 2000 at 11:12 UTC | |
|
Re: Term::Readkey and waitpid
by slayven (Pilgrim) on May 16, 2000 at 02:48 UTC |