in reply to Re: undefined question
in thread undefined question
W/o resetting the $found_one to 0, it would never alert me when the other processes (anything after 1) weren't running. As for the greps externally - I recall finding this in a perl tutorial many moons ago, and never learned it another way. Might you have a link that explains it internally?while ( my $proc = <PROCS> ) { ... $found_one = 1; } if ( $found_one ) { print "looks okay here\n"; found_one = 0; } else { print "couldn't find $process\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: undefined question
by dws (Chancellor) on Jun 09, 2003 at 04:58 UTC | |
by Anonymous Monk on Jun 09, 2003 at 06:39 UTC |