Assuming the Content-type isn't printed at the point the script ends(die, exit, etc), this won't print either. So you could instead print it to STDERR so that it shows up in the logs...
print STDERR "Hello $c \n"; Rob -----Original Message----- From: David vd Geer Inhuur tbv IPlib [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 7:58 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: uninitialized value? Hi, First check if your "$c" has arrived : > my $c = param('c'); > my $content = "c"; print "Hello $c <br>"; If this works, you'dd better send some more code. Else you know why he complains. Actualy I prefer this : if (($c eq "h") || ($c eq "eh") || ($c eq "hd") || ($c eq "p") || ($c eq "c")) { $content = qq{\n}; } Don't know what is faster. Regs David ----------------- > > Ok, here's more of my on-going saga. All of a sudden the page stop loading so > I check the error logs and ran a perl -Tcw in the shell. The syntax is fine > but these errors showed up on the log: > > [Wed Jun 26 06:33:34 2002] [error] [client 209.245.115.253] Premature end of > script headers: /hsphere/local/home/kbabich2/imap.cc/cgi-bin/index.cgi > Use of uninitialized value in string eq at index.cgi line 14. > Use of uninitialized value in string eq at index.cgi line 14. > Use of uninitialized value in string eq at index.cgi line 14. > Use of uninitialized value in string eq at index.cgi line 14. > Use of uninitialized value in string eq at index.cgi line 14. > > Here is what (I believe) it is talking about: > my $c = param('c'); > my $content = "c"; > > if ($c eq "h") { > $content = qq{\n}; > } elsif ($c eq "eh") { > $content = qq{\n}; > } elsif ($c eq "hd") { > $content = qq{\n}; > } elsif ($c eq "p") { > $content = qq{\n}; > } elsif ($c eq "c") { > $content = qq{\n}; > } > > But once again I don't know what I should change. > > ------------------------------------------------- > This mail sent through IMP: http://horde.org/imp/ > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]