I actually do not know what :: indicate. Do they separate directories and subdirectories ? Probably, since at the beginning of the module, I see "package Lingua::EN::Sentence".
use lib 'directory where module is';
my $sentences=get_sentences($text); ## Get the sentences.
foreach my $sentence (@$sentences) {
foreach $pattern(@my_list_of_patterns) {
if ($sentence =~ /\Q$pattern/){
print "MATCH $sentence\n";
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.