title: How do I use a Perl module from a relative location?
body: <p>I have a dir called <code>foo</code>, and in that I have <code>lib</code> and <code>bin</code>.  The scripts in <code>bin</code> need stuff in <code>lib</code>.  I do something like this:</p>
  
  <pre><code>#!perl
  use strict;
  use warnings;
  use lib '../lib';
  use Foo; # &lt;-- comes from lib
  </code></pre>
  
  <p>But that means I have to be in the <code>bin</code> dir to run the script.  Surely there is a better way.  What's the Right Way to do this?</p>