problem using Perl CGI.pm

Problems with the Windows version of XAMPP, questions, comments, and anything related.

problem using Perl CGI.pm

Postby thevoid » 12. January 2007 21:57

Hi, hope someone can help with this

I am able to browse web pages I have created just fine using XAMPP until I try to use the Perl CGI module, when I get Server error/Error 500.

An example of a script which will not work -

#!/usr/bin/perl -wT
#test.cgi
use strict;
use CGI;

my $query = CGI->new();

print $query->header( "text/html" ),
$query->start_html(-title => "My First CGI Script",
-bgcolor => "#ffffcc" ),
$query->h1( "This is a pretty lame Web page" ),
$query->end_html;

I have placed it in xampp\cgi-bin and am looking for it with localhost/cgi-bin/test.cgi... I am obviously just learning the CGI module, any suggestions as to why this is not working would be appreciated : )

Thanks
Last edited by thevoid on 12. January 2007 22:06, edited 1 time in total.
thevoid
 
Posts: 9
Joined: 01. January 2007 20:15

Postby Wiedmann » 12. January 2007 22:05

You have Perl installed?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby thevoid » 12. January 2007 22:07

Yep, have Perl installed
thevoid
 
Posts: 9
Joined: 01. January 2007 20:15

Postby Wiedmann » 12. January 2007 22:11

Code: Select all
#!/usr/bin/perl -wT

Your Perl is in the directory"/usr/bin"?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby thevoid » 12. January 2007 22:13

whoops, no

I see where I'm going wrong here, thanks very much for the help :oops:
thevoid
 
Posts: 9
Joined: 01. January 2007 20:15


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 44 guests