Open jeisner opened 8 years ago
[item from the old TO-DO file dated 2002-04-07]
In predict.inc, there are many substitutions that just replace a pattern with itself, in order to count the number of matches. That is inefficient. Instead, try e.g.
predict.inc
$count = () = (m/$string/g); $count=0; m/$string(?{ ++$count })/g;
(see comp.lang.perl.moderated thread, "Counting matches in a regex")
[item from the old TO-DO file dated 2002-04-07]
In
predict.inc
, there are many substitutions that just replace a pattern with itself, in order to count the number of matches. That is inefficient. Instead, try e.g.(see comp.lang.perl.moderated thread, "Counting matches in a regex")