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. ---------------------------------------------------------------------- ---------- Apache/2.0.43 Server at 127.0.0.1 Port 80 -----><8----- The part of httpd.conf controlling /perl/. Note Dummy is not included here, but the original module, which revealed the original bug, is: ----><8---- <IfModule mod_perl.c> PerlModule Apache::Reload PerlInitHandler Apache::Reload PerlSetVar ReloadAll Off PerlSetVar ReloadModules "CGI::Explorer DBIx::AdminEngine Monash::* Sweep::*" #PerlSwitches -Mblib=C:\Apache2 PerlRequire "C:/Apache2/conf/startup.pl" Alias /perl/ "C:/Apache2/perl/ <Location /perl> SetHandler perl-script PerlResponseHandler ModPerl::Registry Options +ExecCGI PerlOptions +ParseHeaders Order deny,allow Deny from all Allow from 127.0.0.1 </Location> ----><8---- I'll keep working on the original problem. -- Cheers Ron Savage, [EMAIL PROTECTED] on 24/02/2003 http://savage.net.au/index.html