title: perl replace block of text
body: <p>I'm very stuck on creating a piece of perl i need.</p>
  
  <p>I have a file which contains the following</p>
  
  <pre><code>    define(`CONFM4_AST_MODULES', `NOLOAD =&gt; app_thingie.so
      NOLOAD =&gt; app_thingie2.so
      NOLOAD =&gt; app_thingie3.so')
  </code></pre>
  
  <p>Now i need to be able to rewrite this whole block so i was thinking on matching everything that is between  "(`CONFM4_AST_MODULES" and "')" Delete it and then append it again. on the end of the file. 
  Is it possible to regex a thing like this? if so how?</p>
  
  <p>It is not possible to hardcode the entire text in my perl script as it changes sometimes.</p>
  
  <p>If you have any other ideas on how to solve this i love to hear it :) </p>
  
  <p>also the number of thingies that exist in the file changes from 3 to 20.</p>