----- Original Message ----- From: "Doug Loud" <[EMAIL PROTECTED]> To: "'Chad I. Uretsky'" <[EMAIL PROTECTED]>; <Perl-Win32-Users@listserv.ActiveState.com> Sent: Thursday, July 07, 2005 2:39 AM Subject: RE: Using canned subroutines with includes
> > Thanks. I tried using > > require "\\includes\\28ESP.pl"; Try: require "D:\\includes\\28ESP.pl"; I'm assuming that \\includes\\28ESP.pl is indeed on the D:\ drive. Otherwise amend accordingly. > > But got an error message of: > > Can't locate \includes\28ESP.pl in @INC (@INC contains: C:/Perl/lib > C:/Perl/site/lib .) > I suspect that your current working directory is in some drive other than the drive that houses \\includes\\28ESP.pl (The IIS webserver is very good at confusing people about just where the cwd is). When you require "\\someplace\\somefile", perl tries to find "some_file" in the path you've specified. If it can't be found there, it goes looking for \\someplace\\somefile in @INC. And if it can't find it there, then it complains that \\someplace\\somefile can't be found in @INC - which is misleading. In your case it would seem that \\includes\\28ESP.pl can't be found .... I assume because \\includes\\28ESP.pl is being interpreted as C:\\includes\\28ESP.pl, whereas it needs to be interpreted as D:\\includes\\28ESP.pl (or something like that). Cheers, Rob _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs