during the foreach loop I remove punctuation and set to lowercase (such that No and no are the same word.
in reply to Re^5: putting text into array word by word
in thread putting text into array word by word
my @these_words = split(' ', $_);
foreach my $this_word (@these_words)
$this_word =~ s/[[:punct:]]//g;
$this_word = lc($this_word);
push @all_words, $this_word;