use Cwd qw/cwd chdir abs_path/;
use File::Basename qw/dirname/;
use lib abs_path(dirname($0));

use MyModule;

Adapted from http://www.wetware.com/drieux/CS/lang/Perl/PM/useLibHack.html

Nick Lewycky

Reply via email to