Hi Di,

Yesterday i tried a "Hello world" program in perl using cgi script on a windows 
platform. The steps i followed were:

1. Made a directory in "C:" and named it "cgi-bin"
2. Wrote  my source code file and saved it with "test.cgi"

#############################################################################
Source code-
#!/usr/bin/perl

print "Content-type:text/html\r\n\r\n";
print '<html>';
print '<head>';
print '<title>Hello Word - First CGI Program</title>';
print '</head>';
print '<body>';
print '<h2>Hello Word! This is my first CGI program</h2>';
print '</body>';
print '</html>';

1;
##############################################################################

3. opened it with my web browser.

but now instead of giving the output it just shows the original source code.  
please help!
regards

PS: software that I've installed on my pc is "Strawberry perl plus padre"


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to