Apache and Perl in Windows



Hi and Merry Christmas. I am having a problem. The cgi scripts execute,
but the output is empty. I am studying a spider book that uses Perl so I
download perl and Apache, then uncomment out the lines in the web.xml
file in apache and rename the jar files in the server directory. Then I
launch apache and run my script using an HTML file. The script executes,
but I don't see any results. Perl works fine separately and so does
Apache. But together, they don't. Here is the source code for the 2
files. I think this has to do with permissions, but when I installed
Apache, I used the same account and password as my Windows username and I
am administrator. I am out of ideas. If anyone knows what is going wrong,
I would appreciate the help. Thank you.

<HTML>
<HEAD>
<TITLE>Environment Variables
using GET</TITLE>
</HEAD>
<BODY>
<FORM ACTION="cgi-bin/exp.cgi" METHOD="GET">
Press submit for a list of environment variables. <BR>

First Name: <input type=
"text" name="fname" size=
30><p>
Last Name: <input type="text"
name="lname" size=30><p>
<input type="submit">
</form>

<FORM>
</BODY>
</HTML>




#!c:\Perl\bin\perl.exe
use CGI qw(:all);
use Strict;
use LPW::Simple;

print "Content-type: text/plain\n\n";

foreach $var (sort keys %ENV) {
print "$var=\"$ENV{$var}\"\n";
}

@values = split(/&/,$ENV{'QUERY_STRING'});
foreach $i (@values) {
($varname, $mydata) = split(/=/,$i);
print "$varname = $mydata\n";
}
.



Relevant Pages

  • Re: Apache and Perl in Windows
    ... The cgi scripts execute, ... I am studying a spider book that uses Perl so I ... > file in apache and rename the jar files in the server directory. ...
    (comp.lang.perl.misc)
  • Undefined symbol: PL_perl_destruct_level after upgrading....
    ... "test upgrade" and all that):P ... Basically, I recently upgraded apache, mysql & php using http:// ... it seems that _somehow_ Perl 5.8.0 was ... installed on the Woody server I admin. ...
    (Debian-User)
  • Re: from elsewhere, an assembler
    ... PHP is a treat. ... The only problem I have with Perl at the moment, ... play with Perl I play inside a command prompt ... an annoyance I guess for using apache on windows... ...
    (alt.lang.asm)
  • Re: Advice: "The Right" authentication method
    ... > our ISP will use to set up their eMail accounts and web space. ... > Verify that users have supplied the correct password; and let the perl ... or do I implement an Apache module to ... they claim to be) and some form of secret. ...
    (freebsd-questions)
  • RE: apache13+mod_ssl portupgrade problem..
    ... from ports, it makes the port perl the active perl version. ... switches back to the system perl and everything goes wacky and apache ... Then deinstall and reinstall apache. ...
    (freebsd-questions)