On Wed, 9 May 2001, Stephen E. Hargrove wrote:

> 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?

perldoc -q INC

...bunch of stuff...

How do I add a directory to my include path at runtime?

       Here are the suggested ways of modifying your include
       path:

           the PERLLIB environment variable
           the PERL5LIB environment variable
           the perl -Idir command line flag
           the use lib pragma, as in
               use lib "$ENV{HOME}/myown_perllib";

       The latter is particularly useful because it knows about
       machine dependent architectures.  The lib.pm pragmatic
       module was first included with the 5.002 release of Perl.

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
Lazlo's Chinese Relativity Axiom:
        No matter how great your triumphs or how tragic your defeats --
        approximately one billion Chinese couldn't care less.

Reply via email to