in reply to search for exact word only
Can be rewritten like so:if($action eq '!='){ $match{$a} = 0 if $line[$position]=~m/\Q$key/i; } else{$match{$a} = 1 if $line[$position]=~m/\Q$key/i;}
$match{$a} = ($line[$position] =~ m/\b\Q$key\E\b/i) ? 1 : 0; $match{$a} = !$match{$a} if $action eq '!=';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: search for exact word only
by Anonymous Monk on Sep 27, 2004 at 16:54 UTC | |
by Roy Johnson (Monsignor) on Sep 27, 2004 at 17:01 UTC | |
by Anonymous Monk on Sep 27, 2004 at 18:08 UTC | |
by Roy Johnson (Monsignor) on Sep 27, 2004 at 21:25 UTC | |
by Anonymous Monk on Sep 28, 2004 at 11:17 UTC | |
by Anonymous Monk on Sep 29, 2004 at 10:39 UTC | |
| |
by muntfish (Chaplain) on Sep 28, 2004 at 08:20 UTC | |
by Anonymous Monk on Sep 28, 2004 at 10:53 UTC | |
by muntfish (Chaplain) on Sep 28, 2004 at 11:26 UTC | |
by Anonymous Monk on Sep 28, 2004 at 14:05 UTC | |
|