title: Is the order of use of perl modules followed when evaluating subroutines?
body: <p>I have a perl module that has a frequently used subroutine. For a specific set of scripts I need to override this subroutine so i created another module that has the new implementation. Does anyone know if the call order of the perl modules are always followed?</p>
  
  <p>Ex.:</p>
  
  <p><code>one.pm</code>:</p>
  
  <pre><code> sub temp{   print “hi”; }
  </code></pre>
  
  <p><code>two.pm</code>:</p>
  
  <pre><code>sub temp{   print “hello”; }
  </code></pre>
  
  <p><code>sample.pl</code>:</p>
  
  <pre><code>use one; use two;
  
  temp();
  </code></pre>
  
  <p>I have tested this and it prints “hello” as expected. But I wanted to make sure that this is always the case. Is the evaluation of imported modules in order all the time?</p>