title: How can I tell Perl XML::LibXML to use newer libxml2 library during runtime?
body: <p>Our machines come with <code>libxml2 2.7.6</code> pre-installed on them. However, someone needed a newer version of <code>libxml2</code> and installed <code>2.7.8</code> on our networked file system. Likewise, they used this version of <code>libxml2</code> to compile their version of the Perl module <code>XML::LibXML</code>, a Perl interface for <code>libxml2</code>. This was also placed on the network drive and is meant for developer use.</p>
  
  <p>I am currently trying to use their compiled version of <code>XML::LibXML</code>. My script finds the module just fine, but when it goes to run it, it complains that it was compiled against a newer version of <code>libxml2</code> than the one the script is looking at:</p>
  
  <pre><code>Warning: XML::LibXML compiled against libxml2 20708, but runtime libxml2 is older 20706
  </code></pre>
  
  <p>Obviously the Perl script is still looking at the system's <code>libxml2</code>, but I need it to use the newer version. Rather than recompiling the <code>XML::LibXML</code> module against the old <code>libxml2</code> library again, is there any way I can tell Perl to simply use the newer <code>libxml2</code> library?</p>