[Pdx-pm] how to append to library path?

Chris Dawson cdawson at webiphany.com
Mon Dec 15 14:58:27 CST 2003


Answers inline:

Randal L. Schwartz wrote:

>>>>>>"Chris" == Chris Dawson <cdawson at webiphany.com> writes:
>>>>>>            
>>>>>>
>
>Chris> Is it possible to append to the @INC path such that any instance of
>Chris> Perl always uses a special library path?  Is this something that is
>Chris> compiled into perl,
>
>Yes.  You must rebuild Perl to change it permanently.
>
>Chris>  or is there a file which I can modify to do this?
>
>How would it know where to look for the file?  You've always got a
>chicken-and-egg problem there. :)
>
>  
>
Well, I thought perhaps the path to this file might have been compiled 
into perl.  :)  Am I missing something?  Is there a fundamental reason 
why this would not work?  I guess I will just use PERL5LIB....

>Chris> I realize I can add a "use lib" statement to my scripts, but I would
>Chris> like to enable this in a more global way.
>
>
>  
>
Thanks Randal.

Chris




More information about the Pdx-pm-list mailing list