SPUG: @INC on Windows

Joshua Lanza joshlanza at hotmail.com
Tue Feb 3 20:03:53 CST 2004

Thanks (all) for the responses. I was afraid this might require a rebuild.
I'll stick to "use lib" ...


----- Original Message ----- 
From: <ced at carios2.ca.boeing.com>
To: <joshlanza at hotmail.com>; <spug-list at pm.org>
Sent: Tuesday, February 03, 2004 3:07 PM
Subject: Re: SPUG: @INC on Windows

> > Anyone know how to permanently add a path to @INC on Windows? The reason
> > not using perl/lib or perl/site/lib is because I'd like to keep custom
> > modules separate from the standard ActiveState install.
> Need a rebuild to add permanently... however there are various
> ways to add other directories on the fly. From perlfa8:
>     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.
> hth,
> --
> Charles DeRykus

More information about the spug-list mailing list