Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Extract Paragraph From Text

by shadowsong (Pilgrim)
on Sep 08, 2015 at 08:35 UTC ( #1141325=note: print w/replies, xml ) Need Help??


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......

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1141325]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2019-07-18 22:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?