title: How can I delete characters between < and > in Perl?
body: <p>I need to write a Perl script to read in a file, and delete anything inside &lt; >, even if they're on different lines. That is, if the input is:</p>
  
  <pre><code>Hello, world. I &lt;enjoy eating
  bagels. They are quite tasty.
  I prefer when I ate a bagel to
  when I &gt;ate a sandwich. &lt;I also
  like &gt;bananas.
  </code></pre>
  
  <p>I want the output to be:</p>
  
  <pre><code>Hello, world. I ate a sandwich. bananas.
  </code></pre>
  
  <p>I know how to do this if the text is on 1 line with a regex. But I don't know how to do it with multiple lines. 
  Ultimately I need to be able to conditionally delete parts of a template so I can generate parametrized files for config files. I thought perl would be a good language but I am still getting the hang of it.</p>
  
  <p><strong>Edit</strong>: Also need more than 1 instance of &lt;></p>