When I try to employ subdirectories my perl cgi programs stop working. This is because the "use" statements cannot find their files.
I could convert the "use evidence_db;" statements to "require '../evidence_db.pm';" and that works. But this is painful.
Surely there is an easier way. I thought of going into the IIS setup and put a "-I" switch for the perl statement IIS uses to invoke perl for CGI. However, that could mess up other applications in other sites if I am not the only site on the machine.
I don't know where I would change the setting in Apache HTTPD for just the current site either.
Can someone tell me?
Thanks, Siegfried
perldoc lib
You can add directories to the @INC array at compile time. You may also be interested in
perldoc FindBin
For instance in the top of my CGI handler I have,
use FindBin; use lib "$FindBin::Bin/../../lib"; use lib "$FindBin::Bin/../lib";
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>