<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>So yesterday in class we had to include "use lib '.';" at the top
      of our scripts to get them to run.  This was a "hack" that was
      done because Perl 5.26 removed the current directory from the list
      of places that are searched for modules and executables. 
      According to the perl documentation I read the proper way to
      handle this in Perl 5.26 is to include the following two lines in
      your script before you search for files...</p>
    <p>use FindBin qw($RealBin);<br>
      use lib $RealBin;<br>
      <br>
    </p>
    <p><br>
    </p>
    <div class="moz-signature">-- <br>
      <b>Andrew J. Pounds, Ph.D.</b><br>
      <i>Professor of Chemistry and Computer Science</i><br>
      <i>Director of the Computational Science Program</i><br>
      <i>Mercer University, Macon, GA, 31207 (478) 301-5627 </i></div>
  </body>
</html>