I think you need to give FastCGI its own filehandles to play with:
my $out = new IO::Handle; my $err = new IO::Handle; # keep the environment a global because of CGI.pm my $req = FCGI::Request(\*STDIN, $out, $err, \%ENV); while ($req->Accept() >= 0) { # generate the page select $out; print $page; select STDOUT; }
In reply to Re: Wierd issues with STDOUT STDERR and FastCGI
by mugwumpjism
in thread Wierd issues with STDOUT STDERR and FastCGI
by suaveant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |