in reply to Checking a running daemon
Try changing
if ($psaxline =~ "$process") { [download]
to
if ($psaxline =~ m!$process!) { [download]
If you want to use the =~ operator, you need to use it in conjunction with a regex.