in reply to Perl too smart require()ing libs
is basically a no-op (unless you're root, where that's removed).use lib '.';
If your intent is to add the directory of the module/script to the @INC path, that's definitely not going to do it. You'll need something more like:
use File::Basename qw(dirname); use lib dirname(__FILE__);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl too smart require()ing libs
by runrig (Abbot) on Jun 22, 2007 at 23:17 UTC |