[X-Unix] Where to put my personal Perl Modules?

Doug McNutt douglist at macnauchtan.com
Mon Jul 10 12:00:40 PDT 2006


At 11:45 -0700 7/10/06, Jerry Krinock wrote:
>I have written several perl scripts that I keep in ~/bin.  Also, ~/bin is in
>my bash PATH, so I can access them from any current directory.
>
>But today I wrote a perl Module and added it as a subfolder to ~/bin.  If I
>cd to ~/bin and run a perl script which "uses" the Module from there, it
>works fine.  But if I'm somewhere else and type the command, relying on my
>bash PATH to find it, the perl compiler cannot find my module.

Try defining PERL5LIB in your $HOME/.MacOSX/environment.plist file.

It might also work for you to just define it in .bashrc or something else that always gets executed.

setenv PERL5LIB  $HOME/local/bin

for me in tcsh.
-- 

--> From the U S of A, the only socialist country that refuses to admit it. <--


More information about the X-Unix mailing list