in reply to fixing paragraphs

You can use Text::Wrap to do it.

Sample:

$l = "sentence to format. This is a sample sentence to format. Thi +s is a sample sentence to format. This is a sample sentence to forma +t."; use Text::Wrap; $Text::Wrap::columns = 52; print wrap(" ", ' ', $l), "\n\n"; __END__ sentence to format. This is a sample sentence to format. This is a sample sentence to format. This is a sample sentence to format.

--
Marco Antonio
Rio-PM

Replies are listed 'Best First'.
Re^2: fixing paragraphs
by bfdi533 (Friar) on Jun 19, 2005 at 19:44 UTC

    That is not a bad idea and I will remember this for the future.

    But, the text for format is several long paragraphs where I just want to join the incomplete sentences together. I do not need to format or wrap the text as I am going to end up importing this into Latex/Lyx for formatting the final output.