in reply to Using @INC

It doesn't have to be in your profile. It's just very convenient for it to be there.

>set PERL5LIB=c:\bar;c:\foo >perl -le"print for @INC" c:\bar c:\foo ...

Mind you, the var will be visible to that shell and its children if you do it this way. Yes, you could but this in a batch file.