Re: Adding to @INC

[email protected] (Doug McNutt)
Newsgroups perl.macosx
Message-ID <p05100303c58ab372ca2c@[192.168.1.14]>
Mac OS neXt also provides for a file:

$HOME/.MacOSX/environment.plist.  .If it's not present you can create 
it and its hidden directory.  Contents are environment variables that 
you would like defined even if you haven't opened a Terminal.app 
session. AppleScript's do shell script command, for instance will not 
run your startup scripts for your chosen shell.

In environment.plist you can define

PERL5LIB   as   /opt/local/lib/perl5/site_perl/5.8.8

without adding whatever else was in $PERL5LIB.  The result is 
independent of your choice of shell.  Apple has published a note on 
it somewhere. Concatenations to existing environment variables will 
not work.

Watch out for some errant scripts in /etc/ that once overwrote $PATH 
when it was redefined in environment.plist.
-- 

--> From the U S of A, the only socialist country that refuses to admit it. <--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.