How to Edit a File Text in Perl : <p>I have a file now in that i want to update the value of variable.How can we do this .
<strong>File Content:</strong></p>

<pre><code>&lt;Config&gt;
 NUM1 =  8
 AMV1 =  8
 AMV2 =  8
 DEF2 =  8
 DGF =  8
 &lt;/Config&gt;
</code></pre>

<p>Now in this i want to change the value of <code>NUM1</code> how can we do this in Perl.</p>
