laziness, impatience, and hubris | |
PerlMonks |
perlman:lib:libby root (Monk) |
on Dec 23, 1999 at 00:49 UTC ( [id://1142]=perlfunc: print w/replies, xml ) | Need Help?? |
lib:libSee the current Perl documentation for lib:lib. Here is our local, out-dated (pre-5.6) version:
lib - manipulate
use lib LIST;
no lib LIST;
This is a small simple module which simplifies the manipulation of
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 LIST; is almost the same as saying
BEGIN { unshift(@INC, LIST) }
For each directory in
LIST (called
If
LIST includes both
DELETING DIRECTORIES FROM @INC
You should normally only add directories to
@INC. If you need to delete directories from
By default the
To delete all instances of all the specified names from
no lib qw(:ALL .);
For each directory in
LIST (called
If
LIST includes both
RESTORING ORIGINAL @INC
When the lib module is first loaded it records the current value of
@INC = @lib::ORIG_INC;
SEE ALSOFindBin - optional module which deals with paths relative to the source file.
AUTHORTim Bunce, 2nd June 1995. |
|