Perl uses paths in:
@INC
to search for modules. (.pm files)
If you:
perl -e 'print join "\n", @INC;'
You will see which paths are currently being searched for modules. (This @INC list is compiled into the perl executable)
Then you can:
BEGIN { unshift @INC, 'C:\mylibs' }
or
use lib 'C:\mylibs'
and put MyModule.pm inside C: \ mylibs to include:
use MyModule;
source
share