At 13:21 -0700 10/06/2011, Jan Dubois wrote:

I think a better way to modify your @INC is on a per-installation
basis.  For Apple's Perl you have the AppendToPath and PrependToPath
There is no PrependToPath file by default, but you can create one
yourself, and all directories listed in there will be put at the
front of @INC, just as if you put them into PERL5LIB.

If you build your own Perl, then you may want to ./Configure it
with -Dusesitecustomize.  That way you can modify @INC in a
perl/site/lib/ file at runtime.

Very useful information, Jan.  Many thanks.


Reply via email to