compare this with your code your must forgot some thing.its works fine.

#!/usr/bin/perl
use CGI;
$x=new CGI;

print $x->header;
print $x->start_html();
print $x->end_html();

Debasis


You wrote:

> From: "Mayur Joshi" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Date: Mon, 20 Mar 2000 13:05:47 IST
> Subject: [ILUG-BOM] Apache-CGI
> 
> 
> Hello,
> Wish you all Happy Holi.
> 
> I'm having some minor problems with Apache &amp; CGI working. In some of my
Perl 
> scripts to display HTML page dynamically, I have used CGI header function. I 
> created a new CGI object x &amp; the printed
> print $x -> header;
> 
> When this script is executed the browser gives me error saying the document 
> contains no data. Then I changed that line &amp; replaced with the following
> print "Content-Type:text/html","\n\n";
> The problem was solved. Why is that happening. I always have some probs when 
> I use CGI functions in my Perl scripts.
> 
> Mayur
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
> 
> To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the
mailing list button and fill the appropriate information 
> and submit. For any other queries contact the ML maintener
> 

To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list 
button and fill the appropriate information 
and submit. For any other queries contact the ML maintener

Reply via email to