NAME

Text::ExtractWords - Perl extension for extract words from strings

SYNOPSIS

use Text::ExtractWords qw(words_count words_list);

my %hash = ();
words_count(\%hash, "test the words_count function");

my @list = ();
words_list(\@list, "test the words_list function");

DESCRIPTION

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.

METHODS

words_count(HASHREF, STRING)

Extract words from a string to hash reference and count the number of occurrences for each word.

words_list(ARRAYREF, STRING)

Extract words from a string to array reference.

AUTHOR

Henrique Dias <hdias@aesbuc.pt>

SEE ALSO

perl(1).