Yep, I did that, tried every single option to remove this premature end of script headers.
Do you think it has to do something with 'gedit' text editor? because I am scripting in this editor for the very first time. The scripts copied from Window XP machine have no problems at all, runing smoothly, only those are producing error which I am writing in the Linux machine. Why? use CGI qw(&header); use CGI::Carp qw(fatalsToBrowser); print &header; print "Hello world"; ----------------- with CGI.pm $q->print($q->header( type => 'text/html') -------------- and simply print "Content-Type: text/html\n"; print "Hello World\n"; ---------- Thanks, Sara. ----- Original Message ----- From: "drieux" <[EMAIL PROTECTED]> To: "cgi cgi-list" <[EMAIL PROTECTED]> Sent: Friday, September 12, 2003 4:31 AM Subject: Re: Perl/Linux problem. : : Sara, : : Wiggins is right, one of the questions is what exactly : did the Apache Error Log say was it's chief complaint. : : The 'premature end of script headers' suggest that your : output does not have a content-type or there is : <CR><LF> separating them. : : eg: : [jeeves: 45:] test_cgi GET simple.cgi : Content-Type: text/plain : hello World : [jeeves: 46:] : : which is not a separation from the header and the body: : : [jeeves: 47:] test_cgi GET simple.cgi : Content-Type: text/plain : : hello World : [jeeves: 48:] : : The script for that is at the end. : : Excuse me while I help adjust Wiggins Hair.... : : On Thursday, Sep 11, 2003, at 15:45 US/Pacific, Wiggins d'Anconia wrote: : [..] : > : > Without that all the claims you make to checking everything are : > suspect.... : : bad hair day there wiggins? : : THWACK! THWACK! THWACK!!!! : : did that help loosen up the dandruf. : : ciao : drieux : : --- : the simple code: : ### #!/usr/bin/perl -w : ### use strict; : ### : ### our $CRLF = "\015\012"; # "\r\n" is not portable : ### my $type = "text/plain"; : ### print "Content-Type: $type" . $CRLF . $CRLF . "hello World" : : : : -- : 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]