Text::ExtractWords - Perl extension for extract words from strings
use Text::ExtractWords qw(words_count words_list); my %hash = (); my %config = ( minwordlen => 2, maxwordlen => 32, locale => "pt_PT.ISO_8859-1", ); words_count(\%hash, "test the words_count function", \%config); my @list = (); words_list(\@list, "test the words_list function", \%config);
The aim of this module is to extract the words from the texts or mails to identify spam. But it can be used for another purpose.
Extract words from a string to hash reference and count the number of occurrences for each word.
Extract words from a string to array reference.
Henrique Dias <hdias@aesbuc.pt>
perl(1).
To install Text::ExtractWords, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::ExtractWords
CPAN shell
perl -MCPAN -e shell install Text::ExtractWords
For more information on module installation, please visit the detailed CPAN module installation guide.