in reply to Check word presence WITHOUT hashes or grep

Well, you could always do what we had to do before we had grep and hashes:
my $found; for my $w (@word_list) { if ($w eq $corpus_word) { $found = 1; } } # $found == 1 if $corpus_word was found in @word_list
Of course, there might be more efficient ways to do this.

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