in reply to Help with Search String
Define hash with searched words and check for hash key existance:
perlre, perldscmy %hash; @hash[qw(word1 word2)] = (1); if (exists($hash{$_})){ }
In Section
Seekers of Perl Wisdom