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?