I just installed Apache and mod_perl, but for some reason when I execute
scripts through my Apache server it shows all of the Perl code:
#!C:/Perl/bin/Perl.exe
print "Content-type: text/html\n\n";
foreach $var (sort(keys(%ENV))) {
$val = $ENV{$var};
$val =~ s|\n|\\n|g;
$val =~ s|"|\\"|g;
print "${var}=\"${val}\"\n";
}
I got the path found on the first line from an example Perl script
(printenv.pl) that came with the latest version of the Apache server.
Could anybody give me a hand with a suggestion or two?