title: Unable to locate DBI.pm module in Perl
body: <p>I am using CentOS, and I have installed Perl 5.20 and Perl 5.10 was present by default.</p>
  
  <p>I am using the Perl 5.20 version to execute the Perl code</p>
  
  <p>I am trying to use the DBI module and get this error</p>
  
  <pre><code>[root@localhost ~]#perl -e 'use DBI;'
  Can't locate DBI.pm in @INC (you may need to install the DBI module) (@INC contains: /usr/local/lib/perl5/site_perl/5.20.1/i686-linux /usr/local/lib/perl5/site_perl/5.20.1 /usr/local/lib/perl5/5.20.1/i686-linux /usr/local/lib/perl5/5.20.1 .) at -e line 1.
  BEGIN failed--compilation aborted at -e line 1.
  </code></pre>
  
  <ul>
  <li><p>How to check for all installed versions of Perl?</p></li>
  <li><p>How do I check whether the DBI or any module is installed?</p></li>
  <li><p>How to resolve this error so that I can use DBI module?</p></li>
  </ul>