http://www.perlmonks.org?node_id=743791

nagalenoj has asked for the wisdom of the Perl Monks concerning the following question:

Dear friends,

Thank you for your very useful tutorials on CGI for my last node Where can I read perl CGI?

I have tried my first cgi program. The problem is that nothing gets displayed in browser. I am using firefox 2.0.

use CGI; my $cgi = CGI->new; print $cgi->header(), $cgi->start_html(), $cgi->p("Hello World"), $cgi->end_html();

First, I executed the code in command line. It prints the expected output. Then, I tried perl -c to check the syntax, it said ok. But, when I tried in browser, nothing gets printed.

I have the file in cgi-bin directory, which is configured. I have given the permission as 777 for the file.

Help me to proceed..