in reply to Perl CGI problem. Help please!!!!

Try a simple script:
#!/usr/local/bin/perl -w use strict; use CGI; my $cgi = new CGI; print $cgi->header(-type => 'text/html'); print "Please use <CODE>your code here</CODE> tags";
chmod 755 the script. If it does the same, check your webserrvers configuration.

update ps. your script works fine for me, it's probabluy your webservers configuration.

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.

Replies are listed 'Best First'.
Re^2: Perl CGI problem. Help please!!!!
by chakkaln (Sexton) on Jul 27, 2005 at 14:03 UTC
    Hi There, Thanks a lot for the prompt reply. I tired your script with your instruction but again I get the code on the browser. Do I have to do chmod 755 to the directories in which this script is in. Thanks Nagesh