title: How can I remove all newlines from hash values?
body: <p>I tried removing all newlines (<code>\n</code>) from the values of a hash:</p>
  
  <pre><code>my %var_h = (  "ID"   =&gt; " This is Test 
                             This is new line TEST 
  
  
                             newline Test end ");
  </code></pre>
  
  <p>How can I remove all the new lines from the values of <code>%var_h</code>? </p>
  
  <p>I tried <code>s/\\n//g</code> but I could not get it to work.</p>