Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Skip 2 new lines

by Anonymous Monk
on Nov 08, 2010 at 02:42 UTC ( #870009=note: print w/replies, xml ) Need Help??


in reply to Re: Skip 2 new lines
in thread Skip 2 new lines

Hi Murugu,

Thanks for the feedback. This didn't quite do what I was hoping... :)

In my file I have '2' paragraphs that I would like to create, but each section of text that I want to make a paragraph out of has a newline every 4th word - the only thing that separates each 'section'/'to be paragraph' is 2 newlines that I would like to have maintained in the newly created file.

Right now my code just makes one paragraph out of the 2 sections.

Thanks again.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2021-12-05 04:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (31 votes). Check out past polls.

    Notices?