open( STOPWORDS, '<', 'stopword.list' ); my @stopwords = ; chomp @stopwords; my $stopregex = join '|', map qr/\b\Q$_\E\b/, @stopwords;