in reply to Checking a running daemon

my @loc_daemons = qw( ... ); ... foreach $process (@loc_daemons) { chomp $process; # Just in case ...
"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.

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.