use lib qw( ./ );

 

That works for me…

 

Robert

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, March 23, 2006 10:17 AM
To: [email protected]
Subject: Configuring path for require in web application

 

I installed a web application written in perl. This web application has to be installed in his own cgi-bin subdirectory. The main perl script do a lot of require 'somefile' to include files in the current directory. When that script is executed, the user receive this error message:
Can't locate layout.ph in @INC (did you run h2ph?) (@INC contains: M:/Perl/lib M:/Perl/site/lib .) at D:\\chr\\wwwroot\\WebApps\\cgi-bin\\worklist\\main.pl line 54.
Line 54 contains
   require 'layout.ph';
The file layout.ph is in the same directory as main.pl. As I understand, I have to add a directory in the "@INC" variable. I have no idea how to do that !
Any help appreciated.
 
--
fgeorges

 

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to