title: Perl module import error
body: <p>I have installed MongoDB perl module. </p>
  
  <p>I got a simple perl script (below):</p>
  
  <pre><code> use MongoDB ();
   print "OK!\n";
  </code></pre>
  
  <p>When I compile this perl script, I get the following errors:</p>
  
  <pre><code>"all" is not exported by the List::Util module
  Can't continue after import errors at /usr/local/share/perl5/Specio/OO.pm 
  line 9
  BEGIN failed--compilation aborted at /usr/local/share/perl5/Specio/OO.pm 
  line 9.
  Compilation failed in require at /usr/local/share/perl5/Specio/Coercion.pm 
  line 8.
  BEGIN failed--compilation aborted at 
  /usr/local/share/perl5/Specio/Coercion.pm line 8.
  Compilation failed in require at /usr/local/share/perl5/Specio/Declare.pm 
  line 11.
  BEGIN failed--compilation aborted at 
  /usr/local/share/perl5/Specio/Declare.pm line 11.
  Compilation failed in require at /usr/local/lib64/perl5/DateTime/Types.pm 
  line 12.
  BEGIN failed--compilation aborted at 
  /usr/local/lib64/perl5/DateTime/Types.pm line 12.
  Compilation failed in require at /usr/local/lib64/perl5/DateTime/Duration.pm 
  line 12.
  BEGIN failed--compilation aborted at 
  /usr/local/lib64/perl5/DateTime/Duration.pm line 12.
  Compilation failed in require at /usr/local/lib64/perl5/DateTime.pm line 14.
  BEGIN failed--compilation aborted at /usr/local/lib64/perl5/DateTime.pm line 
  14.
  Compilation failed in require at /usr/local/lib64/perl5/MongoDB/BSON.pm line 
  35.
  BEGIN failed--compilation aborted at /usr/local/lib64/perl5/MongoDB/BSON.pm 
  line 35.
  Compilation failed in require at /usr/local/lib64/perl5/MongoDB.pm line 32.
  BEGIN failed--compilation aborted at /usr/local/lib64/perl5/MongoDB.pm line 
  32.
  Compilation failed in require at script.pl line 2.
  BEGIN failed--compilation aborted at script.pl line 2.
  </code></pre>
  
  <p>In <strong>/usr/local/share/perl5/Specio/OO.pm</strong> line 9, the following use statement is there.</p>
  
  <pre><code>use List::Util qw( all );
  </code></pre>
  
  <p>I believe the above line is the reason for all the errors because they seem to be nested from this file. </p>
  
  <p>How do I resolve this error?</p>