From: "Ron Goral" <[EMAIL PROTECTED]>
> I am testing some scripts on an IIS server and receive the following
> error when I attempt to "use" a module:
>
> Can't locate DG_DatabaseManager.pm in @INC (@INC contains: C:/Perl/lib
> C:/Perl/site/lib .) at
> c:\inetpub\wwwroot\cgi-bin\develop\shp_crt\test.cgi line 9. BEGIN
> failed--compilation aborted at
> c:\inetpub\wwwroot\cgi-bin\develop\shp_crt\test.cgi line 9.
>
> Do I have to modify %INC for IIS to find a non-standard module?
Yes.
> It
> appears that the "." directory is in @INC, but the script cannot find
> it even though DG_DatabaseManager.pm is in the same directory as
> test.cgi. Am I wrong in thinking that "." represents the
> "c:\inetpub\wwwroot\cgi-bin\develop\shp_crt" directory when that is
> where test.cgi is located?
Yes
You may either add
use lib 'c:\inetpub\wwwroot\cgi-bin\develop\shp_crt';
on top of the script or set the PERL5LIB system variable or add
something to the registry (don't remember the path, look into the
ActivePerl FAQ).
Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>