in reply to Regex false match
because || matches. You need to quote the match string if you are trying to match it verbatim:
if ($line =~ m|\Q$process\Q|i) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex false match
by mhearse (Chaplain) on Dec 19, 2006 at 02:10 UTC | |
by ikegami (Patriarch) on Dec 19, 2006 at 05:43 UTC |