<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hello All,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I don't know if&nbsp;this is Perl configuration or Apache, but I am having a problem with Perl module loading during execution of a CGI program.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here is what I did at the beginning of the CGI program.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; use DBI;<BR>&nbsp; use warnings;<BR>&nbsp; use CGI qw(-tabindex :standard Vars);<BR>&nbsp; use CGI::Carp qw(fatalsToBrowser carpout);<BR>&nbsp; use File::Basename;<BR>&nbsp; use Date::Calc qw(:all);<BR><EM>&nbsp; use lib '/rms/awa/imy/sh';<BR>&nbsp; use lib '/rms/awa/common/sh';</EM></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; require "local_vars.pm";<BR>&nbsp; require "global_routines.pm";</DIV>
<DIV>&nbsp;</DIV>
<DIV>When the program is called&nbsp;in the browser, I get the following error message:</DIV>
<DIV>&nbsp;</DIV>
<H1>Software error:</H1><PRE>Can't locate local_vars.pm in @INC (@INC contains: /rms/awa/common/sh /rms/awa/imy/sh /usr/local/lib/perl5/5.8.8/sun4-solaris /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl .) at /var/apache/cgi-bin/rms/login.cgi line 23.
</PRE>
<DIV>&nbsp;</DIV>
<DIV>This local_vars.pm is located in /rms/awa/imy/sh.&nbsp; And as you can see that /rms/awa/imy/sh is in fact in @INC.</DIV>
<DIV>&nbsp;</DIV>
<DIV>The funny thing though is that when I place the local_vars.pm in /var/apache/htdocs/rms/lib, the program locates the file and all is good.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I was wondering if anyone would know what I am missing here.</DIV>
<DIV>&nbsp;</DIV>
<DIV>The version of Apache is 1.3.26 and Perl is 5.8.8.<BR></DIV>
<DIV>Thanks.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Peter</DIV></td></tr></table><br>