title: How can I force unload a Perl module?
body: <p>Hi I am using a perl script written by another person who is no longer in the company.
  If I run the script as a stand alone, then the output are as expected. But when I call the script from another code repeatedly, the output is wrong except for the first time. </p>
  
  <p>I suspect some variables are not initialised properly. When it is called standalone, each time it exits and all the variable values are initialised to defaults. But when called from another perl script, the modules and the variable values are probably carried over to the next call of the script. 
  <br>Is there any way to flush out the called script from memory before I call it next time?</p>
  
  <p>I tried enabling warning and it was throwing up 1000s of lines of warning...!</p>
  
  <p>EDIT: How I am calling the other script:</p>
  
  <p>The code looks like this:</p>
  
  <pre><code>do "processing.pl";
  ...
  ...
  ...
  
  process(params); #A function in processing.pl
  ...
  ...
  ...
  </code></pre>