On Fri, 15 Dec 2000, Alloun, Jonathan wrote: > > I have created a module and have called it in my script. > When I run my script, Perl complains that it cannot find the module. > I can understand this, as the module does not reside in the Perl path but in > a separate directory outside the path. > > I would like to know how I can add my directory (where the module resides) > to the @INC array and therefore Perl should find it. > Try: use libs 'mypath'; where mypath is the full pathname to the directory where your module is located. Do this prior to the use mylib; staetment where mylib.pm is the name of your module. Alteratively, move your module to one of the directories contained in @INC. Your path is not related to where your perl libraries are found but your current CD is. Remember one of the diredtories in @INC is '.'. **** [EMAIL PROTECTED] <Carl Jolley> **** All opinions are my own and not necessarily those of my employer **** _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users