http://www.perlmonks.org?node_id=508902


in reply to Win32 @INC behavior

Set environment variable PERL5LIB to the directory list that you want in your @INC.

set PERL5LIB=\perl\lib;\perl\site\lib

. is automatically added, so don't need to worry about it.

If I do:

set PERL5LIB=foo;bar;%PERL5LIB%

The last piece of perl -V shows:

...... %ENV: PERL5LIB="foo;bar;\perl\lib;\perl\site\lib" @INC: foo bar \perl\lib \perl\site\lib .