Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
So the script is running under /perl. The first time the script executes, everything is fine. But the next time, a header is not sent and there is an internal server error.<Location /perl> SetHandler perl-script PerlResponseHandler ModPerl::PerlRun PerlOptions +ParseHeaders Options +ExecCGI </Location>
I am using the header function from CGI.pm. What I am doing is this in a base class:
Why is the header sent the first time and not the next?use CGI qw(header); my $html = defined($ENV{'SERVER_SOFTWARE'}) ? header : ''; # More stuff gets added to $html before it prints to STDOUT
Thanks monks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mod_perl 1.9 header error
by blahblahblah (Priest) on Feb 21, 2006 at 05:42 UTC |