in reply to Extract Paragraph From Text

perlbeginneraaa,

I agree with kcott's assessment; based on your question your script seems to be performing its intended function as expected - in fact, I even took it a step further to apply it to the text file you mentioned in your question.

The result of which looks like OK - I can't post the result here as it's way too long...

However, could you be more specific as to how its result fails to meet your expectation(s)?

Replies are listed 'Best First'.
Re^2: Extract Paragraph From Text
by perlbeginneraaa (Novice) on Sep 08, 2015 at 15:27 UTC
    Hi shadowsong, Thanks for reply! As I replied to Ken, I expect exactly what you got here, that is, the code prints the paragraphs separately. However, when I execute the perl codes on my computer, it returns the whole text back. I am not sure why this happens......