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
In reply to Re: Check word presence WITHOUT hashes or grep
by pc88mxer
in thread Check word presence WITHOUT hashes or grep
by gojippo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |