Perl Module from relative path not working in IIS6
Posted
by Laramie
on Stack Overflow
See other posts from Stack Overflow
or by Laramie
Published on 2010-05-27T05:56:38Z
Indexed on
2010/05/27
6:01 UTC
Read the original article
Hit count: 310
Disclaimer: I am not a PERL developer and am learning by the seat of my pants.
I am using a Perl module called from a CGI scipt in IIS 6 that is bombing. The identical folder structure on an XP machine (IIS 5.1) works fantastic. If I remove the module loading command at line 9, it will print "about to load" and "ok", but When I try to run
use Language::Guess;
I receive
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
in the browser.
The folder structure is /cgi-bin/test.pl /PerlModules/Language/Guess.pm
I have tried adjusting the file/folder permissions and have reviewed my IIS configuration time and again. It runs fine from the command line on the IIS machine or if I copy the module into \Perl\site\lib, but I don't have permission to load modules on the shared server this script is destined for. Am I missing something simple?
Here is test.pl
use strict;
use CGI ':standard';
print header("text/html");
use lib "..\\PerlModules\\";
print "about to load<br/>";
#bombs here
use Language::Guess;
print "ok"
© Stack Overflow or respective owner