title: Change formatting on paragraphs, with perl
body: <p>I have a number of paragraphs that have returns at the end of a line. I do not want returns at the end of lines, I will let the layout program take care of that. I would like to remove the returns, and replace them with spaces. </p>
  
  <p>The issue is that I do want returns in between paragraphs. So, if there is more than one return in a row (2, 3, etc) I would like to keep two returns.</p>
  
  <p>This would allow for there to be paragraphs, with one blank line between then, but all other formatting for lines would be removed. This would allow the layout program to worry about the line breaks, and not the have the breaks determined by a set number of characters, as they are now. </p>
  
  <p>I would like to use Perl to accomplish this change, but am open to other methods. </p>
  
  <p>example text:</p>
  
  <pre><code>This is a test.
  This is just a test.
  
  This too is a test.
  This too is just a test.
  </code></pre>
  
  <p>would become:</p>
  
  <pre><code>This is a test. This is just a test.
  
  This too is a test. This too is just a test.
  </code></pre>
  
  <p>Can this be done easily?</p>