On May 9, Stephen E. Hargrove said:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On Thu, 10 May 2001, King, Jason wrote:
>
>> Stephen E. Hargrove writes ..
>>
>> >how do i add new directories to @INC? i've managed to bungle one of my
>> >debian systems, and apt-get relies pretty heavily on some .pm's that
>> >aren't in the stock @INC locations.
>>
>> there's a hand module called 'lib' that's part of the CORE distribution ..
>> it basically just unshifts your list onto the @INC array in a BEGIN block
>>
>> use lib qw'/dirs/for /inclusion /in/INC';
>
>
>doesn't this just make the adjustment at compile time? what i'm really
>needing is something that will modify @INC for all time. can that be
>done?
You can't do it for EVERYTHING unless you recompile Perl. You can do it
for yourself all the time by setting the PERL5LIB environment variable to
a colon-separated list of directories to add to @INC automatically.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
Are you a Monk? http://www.perlmonks.com/ http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc. http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter. Brother #734