because || matches. You need to quote the match string if you are trying to match it verbatim:
if ($line =~ m|\Q$process\Q|i) {
In reply to Re: Regex false match
by GrandFather
in thread Regex false match
by mhearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |