in reply to Extracting the sentences from a webpage

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.

my @realSentence = grep { / / } @sentences;

In fact, from the split on down could be reduced to:

print "$_\n" for grep { / / } split /\./, $clean_text;