title: XML::LibXML perl free memory
body: <p>I need to process hundreds of xml files. I'm using XML::LibXML. I'm quite new to perl and I don't understand how to close the fist XML parsed file, before opening the new one</p>
  
  <p>Example</p>
  
  <pre><code>use XML::LibXML;
  my ($parser, $doc, $node);
  foreach my $xmlfullname (@xmlfullnamearray) {
      $parser = XML::LibXML-&gt;new();
      $doc    = $parser-&gt;parse_file($xmlfullname);
      $node   = $doc-&gt;findnodes("/root/node");
      ...
  }
  </code></pre>
  
  <p>Thanks to all, Riccardo</p>