error 500 perl cgi

Alles, was Perl betrifft, kann hier besprochen werden.

error 500 perl cgi

Postby michi2002k2 » 21. December 2009 23:08

Hi,

on my XAMPP installation i can execute localhost/cgi-bin/printenv.pl in my explorer. It run as its supposed to.
But now i put a file like
"test.pl" in there with following source:
Code: Select all
#!"C:\xampp\perl\bin\perl.exe"

use strict;

print "i do use use strict stuff";
}

i get error 500 when i open this file.
commenting the 3. line "use strict" out with "#" makes my code work.

Thats strange, whats the problem ?
michi2002k2
 
Posts: 1
Joined: 21. December 2009 22:34

Re: error 500 perl cgi

Postby Wiedmann » 21. December 2009 23:39

i get error 500 ... whats the problem ?

Read the "error.log".
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to Perl

Who is online

Users browsing this forum: No registered users and 2 guests