in reply to Check word presence WITHOUT hashes or grep
Of course, there might be more efficient ways to do this.my $found; for my $w (@word_list) { if ($w eq $corpus_word) { $found = 1; } } # $found == 1 if $corpus_word was found in @word_list
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Check word presence WITHOUT hashes or grep
by parv (Parson) on Apr 30, 2008 at 06:14 UTC |