Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
To get access to the pid I would use $process->pid. The question is what is the best way to see whether this pid is present or not ? Should I use a grep or exists or some other method ?. My knowledge of Perl is at the novice stage hence my question.$process = new Proc::ProcessTable; @fpid = "1234";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: grep or exists
by blazar (Canon) on May 16, 2006 at 12:01 UTC | |
|
Re: grep or exists
by zentara (Cardinal) on May 16, 2006 at 13:05 UTC | |
|
Re: grep or exists
by jesuashok (Curate) on May 16, 2006 at 12:21 UTC | |
by bart (Canon) on May 16, 2006 at 12:44 UTC | |
by merlyn (Sage) on May 16, 2006 at 13:23 UTC | |
by blazar (Canon) on May 16, 2006 at 12:47 UTC | |
by Anonymous Monk on May 16, 2006 at 13:15 UTC | |
by blazar (Canon) on May 16, 2006 at 13:24 UTC |