title: How to remove newline character and white spaces after them and replacing them with just whitespace character in Perl?
body: <p>How can I write a regex pattern with Perl that will work like that:</p>
  
  <p><code>**If there is a new line**, after it, it will remove that new line character and all the whitespace characters after until it sees any character except for a white space character and will put just one whitespace character instead of them?</code></p>