laziness, impatience, and hubris | |
PerlMonks |
Re: Mods in different directoriesby crabbdean (Pilgrim) |
on Jan 31, 2004 at 00:10 UTC ( [id://325460]=note: print w/replies, xml ) | Need Help?? |
"push" the module directory names to the @INC array in the beginning of your script. Alternatively if you want it to search your directories before the ones below use "unshift" instead of "push" The @INC Variable The @INC array variable contains a list of directories to be searched for files requested by the require function. This list consists of the following items, in order from first to last: - The directories specified by the -I option - The Perl library directory, which is normally /usr/local/bin/perl - The current working directory (represented by the . character) Like any array variable, @INC can be added to or modified. Dean PS. I should add that the @INC array is a system variable.
In Section
Seekers of Perl Wisdom
|
|