in reply to Benchmarking "Are all these characters in this sentence?"
sub RMGir_index { my ($sentence, $wantedLetters)=@_; ## comment removed ## my $foundLetters=scalar (grep index($sentence,$_)>=$[, unpack "(a)*", $wantedLetters); return length($wantedLetters)==$foundLetters; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Benchmarking "Are all these characters in this sentence?" (/./gs)
by tye (Sage) on Aug 30, 2008 at 15:49 UTC | |
by RMGir (Prior) on Aug 30, 2008 at 16:25 UTC | |
|
Re^2: Benchmarking "Are all these characters in this sentence?"
by RMGir (Prior) on Aug 30, 2008 at 14:42 UTC |