in reply to Lingua::Ispell

This type of problem, while it may seem like dark magic when it's happening to you, is almost always the result of a piece of code doing exactly what it's supposed to do.

If we had some code to look at (trimmed down to the smallest possible chunk of code that still demonstrates the problem), we might be able to steer you in the right direction, or ask some questions that might lead to a solution.

Replies are listed 'Best First'.
Re: Re: Lingua::Ispell
by Anonymous Monk on Apr 16, 2001 at 11:13 UTC
    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?
      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 ...