Perl: the Markov chain saw | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hey guys.
Consider a function (lets call it A) which returns 1 if a process finished running, otherwise 0. I would like to write another function which should wait until the process will finish running. What's the best why to do it? I thought of using the while loop and the wait(30); command. Something like this: I also can just call this subroutine until it will finish, although I don't think its smart because of all unnecessary junk. What's the best way to do so? I'm looking for the cleanest way to do it. In reply to waiting for process to finish by ovedpo15
|
|