Syntactic Confectionery Delight | |
PerlMonks |
Re: Extracting the sentences from a webpageby kyle (Abbot) |
on Dec 07, 2009 at 22:31 UTC ( [id://811637]=note: print w/replies, xml ) | Need Help?? |
I've never used Text::Sentence or Lingua::EN::Sentence, but they look like good places to start. It looks as if you're trying to take a double space as the end of a sentence. Is that a special feature of your input text? I'd do your @realSentences filtering with grep.
In fact, from the split on down could be reduced to:
In Section
Seekers of Perl Wisdom
|
|