Zach M.
Zach M.

Reputation: 1194

Running a CGI script in my browser WAMP

I am trying to run the basic cgi script to generate some html and I am just getting the raw code, here is the general script. Is there something else I have to set, I am on a windows system.

 #!/usr/bin/perl

 print "Content-type: text/html\n\n";
 print <<HTML;
 <html>
 <head>
 <title>A Simple Perl CGI</title>
 </head>
 <body>
 <h1>A Simple Perl CGI</h1>
 <p>Hello World</p>
 </body>
 HTML
 exit; 

Upvotes: 2

Views: 1221

Answers (1)

Saurabh Kumar
Saurabh Kumar

Reputation: 5945

You should follow the tutorial here: http://chromicdesign.com/2009/05/setting-up-perl-for-wampp.html

Hopefully you'll be up and running in the end.

Cheers,

Upvotes: 2

Related Questions