"Just in case" what? Do you have doubts about how "qw()" works? You shouldn't, but if you do, and the docs don't convince you, take a couple minutes to test it out. You don't need chomp there.my @loc_daemons = qw( ... ); ... foreach $process (@loc_daemons) { chomp $process; # Just in case ...
Kanji's advice about using grep is the best approach, I think. You need just those last two lines inside your foreach $process (@loc_daemons) loop, and you're done.
In reply to Re: Checking a running daemon
by graff
in thread Checking a running daemon
by Kickstart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |