I have a client who's CGI scripts are throwing this error:
Can't locate /defines.pli in @INC (@INC contains: C/Perl64/site/lib C:/Perl64/lib .) at E:\wwwroot\ELS_Application\cgi-bin\ElectronicLicensing\RE\RECertification.cgi line 29.
Any suggestion on how to debug this?
The server is running Win2012/IIS8/ActivePerl5.22. defines.pli is in the same folder as the calling script, RECertification.cgi in this case.
These CGI scripts are running fine on another server with same setup. They also ran for years on a Win2003 server running ActivePerl 5.8.
Could it be a problem with the installation of ActivePerl 5.22?
Here is a little more detail for Graham:
line 28: require "defines.pli";
line 29: require "$REQUIRE_DIR/defines.pli";
The problem is that $REQUIRE_DIR is null. $REQUIRE_DIR is defined in defines.pli on line 28. So it's not really reading line 28 either. I am not sure why it is not failing on line 28. If I put the full path instead of $REQUIRE_DIR, it works.
This same code has worked for years on a Win2003/Perl5.8.
thanks in advance