It's my fault for not being more specific.  use lib is a Perl pragma
(like use strict and use warnings).  Here is the relevant perldoc:

<snip href="perldoc lib">
NAME
       lib - manipulate @INC at compile time

SYNOPSIS
           use lib LIST;

           no lib LIST;


DESCRIPTION
       This is a small simple module which simplifies the manipu­
       lation of @INC at compile time.

       It is typically used to add extra directories to perl's
       search path so that later "use" or "require" statements
       will find modules which are not located on perl's default
       search path.

       Adding directories to @INC

       The parameters to "use lib" are added to the start of the
       perl search path. Saying

           use lib LIST;

       is almost the same as saying

           BEGIN { unshift(@INC, LIST) }

       For each directory in LIST (called $dir here) the lib mod­
       ule also checks to see if a directory called $dir/$arch­
       name/auto exists.  If so the $dir/$archname directory is
       assumed to be a corresponding architecture specific direc­
       tory and is added to @INC in front of $dir.

       To avoid memory leaks, all trailing duplicate entries in
       @INC are removed.

       Deleting directories from @INC

       You should normally only add directories to @INC.  If you
       need to delete directories from @INC take care to only
       delete those which you added yourself or which you are
       certain are not needed by other modules in your script.
       Other modules may have added directories which they need
       for correct operation.

       The "no lib" statement deletes all instances of each named
       directory from @INC.

       For each directory in LIST (called $dir here) the lib mod­
       ule also checks to see if a directory called $dir/$arch­
       name/auto exists.  If so the $dir/$archname directory is
       assumed to be a corresponding architecture specific direc­
       tory and is also deleted from @INC.

       Restoring original @INC

       When the lib module is first loaded it records the current
       value of @INC in an array "@lib::ORIG_INC". To restore
       @INC to that value you can say

           @INC = @lib::ORIG_INC;


SEE ALSO
       FindBin - optional module which deals with paths relative
       to the source file.

AUTHOR
       Tim Bunce, 2nd June 1995.
</snip>
On Tue, 2002-02-26 at 08:02, Dermot Paikkos wrote:
> Sorry for my ignorance but do you mean putting "use lib 
> '/usr/lib/perl5/site_perl" in my perl script? Or into the httpd.conf?
> 
> If it's that latter, where in the conf file would I put it?
> 
> Sorry to harp on.
> Dp.
> 
> 
> On 26 Feb 2002 at 7:49, Chas Owens wrote:
> 
> > use lib '/usr/lib/perl5/site_perl/'; 
> > 
> > will put it at the head of the lib search path.
> > 
> > On Tue, 2002-02-26 at 06:59, Dermot Paikkos wrote:
> > > Hi gurus,
> > > 
> > > I am trying to get mod_perl installed - yes I am about to get
> > > serious with perl - and have hit a very small snag.
> > > 
> > > Apache will not re-start because there is a missing module, AuthDBI.
> > > However the module is installed, it is located at:
> > > /usr/lib/perl5/site_perl/Apache/AuthDBI.pm
> > > 
> > > But it is looking for it in:
> > > Can't locate AuthDBI.pm in @INC (@INC contains: 
> > > /usr/lib/perl5/i386-linux /usr/lib/perl5
> > > /usr/lib/perl5/site_perl/i386- linux /usr/lib/perl5/site_perl
> > > /usr/lib/perl5/site_perl . /usr/ /usr/lib/perl) at (eval 23) line 3.
> > > 
> > > The location is not listed. How can I get the above path into @INC?
> > > 
> > > I hope that was clear.
> > > Thanx.
> > > Dp.
> > > 
> > > ~~
> > > Dermot Paikkos * [EMAIL PROTECTED]
> > > Network Administrator @ Science Photo Library
> > > Phone: 0207 432 1100 * Fax: 0207 286 8668
> > > 
> > > 
> > > -- 
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > -- 
> > Today is Boomtime the 57th day of Chaos in the YOLD 3168
> > This statement is false.
> > 
> > Missile Address: 33:48:3.521N  84:23:34.786W
> > 
> > 
> 
> 
> ~~
> Dermot Paikkos * [EMAIL PROTECTED]
> Network Administrator @ Science Photo Library
> Phone: 0207 432 1100 * Fax: 0207 286 8668
-- 
Today is Boomtime the 57th day of Chaos in the YOLD 3168
You are what you see.

Missile Address: 33:48:3.521N  84:23:34.786W


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to