title: Perl: Including Digest::MD5 in package not working
body: <p>I am trying to loading Digest::MD5 from the directory my Perl script is existing in (since I can't install through PPM on my enviroment.)</p>
  <p>I've tried a bunch of combinations, but what appears to work on Strawberry perl on Windows, but not in Red Hat linux is having a Digest directory with MD5.pm, base.pm, and file.pm in it. Then I am using this code to load the module.</p>
  <pre><code>use FindBin;
  use lib &quot;$FindBin::Bin/&quot;;
  use Digest::MD5 qw(md5_hex);
  </code></pre>
  <p>But I get this error:</p>
  <blockquote>
  <p>Can't locate loadable object for module Digest::MD5 in @INC (@INC
  contains: /opt/myapp/bin/script/ /usr/local/lib64/perl5
  /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
  /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
  ./app.pl line 21. Compilation failed in require at ./app.pl line 21.
  BEGIN failed--compilation aborted at ./app.pl line 21.</p>
  </blockquote>
  <p>I'm tired of banging my head on my desk, anyone have any ideas?</p>
  <h3>Edit:</h3>
  <p>This was marked as an exact duplicate of a very different question. This is not about a missing module, it is about including a module directly with a perl script so it can be packaged and installed without installing a module through PPM or CPAN or something.</p>