> The script loads fine on console, but when I access it through the web
> browser, it craps out.. with error :
>
> Premature end of script headers: /opt/apache/htdocs/test.cgi
>
> in the error log file.
> and the script is:
>
> #!/usr/bin/perl
> use XML::Xerces;
> use CGI ;
> my $q = new CGI ;
> print $q->header ;
>
> foreach my $e ( @INC ) {
> print "$e<BR>\n" ;
> }
>
My guess is that apache doesn't have the right environment. Does this script
work without the use XML::Xerces? Try printing the header before using
XML::Xerces for debugging.
-Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]