How paragraphs are delimited is actually my question. In otherwords, when perl reads in my string, can it identify where the paragraphs breaks are?
In my example, $text was created in wordpad where 'This is the FIRST paragraph' and 'This is the SECOND paragraph' are seperated by a paragraph break. My desired output is: This is the FIRST paragraph^PThis is the SECOND paragraph Thank you for your interest and your efforts to help me out. Very much appreciated. DA On 10/14/05, Xavier Noria <[EMAIL PROTECTED]> wrote: > On Oct 14, 2005, at 16:13, Dave Adams wrote: > > > Question: How do you find a paragraph break in perl? > > > > Synopsis: In a string I need to find the paragraph breaks and replace > > it with a ^P. Here is my code. > > How are paragraphs delimited? Can you give an example with a couple > of paragraphs and the output you'd like to get? > > -- fxn > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>