Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Non-standard Perl Module Locations



David Shanahan wrote:

Almost identical with perl, just manipulate the @INC array.

unshift @INC, $d->perllib_sitesearch();
unshift @INC, $d->perllib_site();

See what perl uses by default for library paths
perl -e "print join(\"\\n\",@INC);"

Similarly the %ENV hash is tied to the process environment.
You could use the Env module to make manipulating path strings easier too.

perldoc Env

Sometimes you will have to do your include path manipulation inside a BEGIN block so it will get executed before you have loaded any modules too.

Steve S.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links