FAQs All Forums All Comments Screencasts
I would like to add a directory to the Perl library path so that it'll find my files there. How do I modify the ActivePerl @INC? I thought I would find this in the system registry or configuration file but haven't found it.
use lib '/home/user/directory';
If you use your own modules stored in the project tree, you can use relative paths, for example:
use FindBin; use lib "$FindBin::Bin/../mylib";
or even
use FindBin qw($Bin); use lib "$Bin/../mylib";
Cheers
If you use your own modules stored in the project tree, you can use relative paths, for example:
use FindBin;
use lib "$FindBin::Bin/../mylib";
or even
use FindBin qw($Bin);
use lib "$Bin/../mylib";
Cheers