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)?
In reply to Re: Extract Paragraph From Text
by shadowsong
in thread Extract Paragraph From Text
by perlbeginneraaa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |