Ron Savage wrote:
On Wed, 19 Feb 2003 10:04:02 +1100, Stas Bekman wrote:

Ron Savage wrote:

On Tue, 18 Feb 2003 12:56:38 +1100, Stas Bekman wrote:


Hi Folks


In endeavouring to reproduce this problem, I've encountered another:
main.cgi:
-----><8-----
#!/usr/bin/perl

use strict;
use warnings;

use CGI;
use Dummy;

# --

my($title)      = 'Test';
my($q)          = CGI -> new();
my($s)          = Dummy -> string();

print   $q -> header({type => 'text/html;charset=ISO-8859-1'}),
                $q -> start_html({title => $title}),
                $q -> h1({align => 'center'}, $s),
                $q -> end_html();
-----><8-----

Dummy.pm (in /perl/site/lib/):
-----><8-----
package Dummy;

sub string{'This is a string'}

1;
-----><8-----

Output when run as /perl/main.cgi. Only the first line is expected (by me.) Ie why does the text from OK down, appear? :
-----><8-----
This is a string
OK
The server encountered an internal error or misconfiguration and was unable to complete your request.


Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

And what your error_log says?


OK is part of the error message. I think I've fixed that in the cvs version. See if you get any better with it.


__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com



Reply via email to