I faced this problem as well and here's what I ended up doing:
sub irregular_run_mode { my $app = shift; $app->header_type("none"); $| = 1; print $app->query()->header(); # code here return ""; }
Yeah. It tends not to work too well if you use cgiapp_postrun to alter the output. Of course, you can fix that with:
sub cgiapp_postrun { my ($app,$outref) = @_; return $outref if $app->get_current_runmode() eq "irregular_run_mode +"; # ... }
Note: I consider this to a be a hack and rather ugly. Please leave comments so if someone wishes to alter the irregular_run_mode so it works normally they will know that they need to alter cgiapp_postrun as well.
antirice
The first rule of Perl club is - use Perl
The ith rule of Perl club is - follow rule i - 1 for i > 1
In reply to Re: CGI::Application... flushing output to browser?
by antirice
in thread CGI::Application... flushing output to browser?
by jfroebe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |