in reply to Re: Lingua::Ispell
in thread Lingua::Ispell

print "Content-type: text/html\n\n";
use Lingua::Ispell;
my @words = Lingua::Ispell::spellcheck("word");


That's enough to cause the header to appear.
This only happens under httpd, running from console is fine.

It turns out that the IPC module makes a copy of STDOUT or something similiar to that effect.
Anything I printed to STDOUT before, gets printed again!!
Might this somehow have to do with Apache buffering?

Replies are listed 'Best First'.
Re: Re: Re: Lingua::Ispell
by Perlmage (Acolyte) on Apr 16, 2001 at 15:59 UTC
    What happens if you put a '$| = 1;' above the print? If this fixes it, you've run up against STDIO buffering, not Apache's.
      Thanks. That did it.
      Another special variable to remember ...