in reply to Re: Re: cgi and stdin
in thread cgi and stdin

Hand-rolled logic?

Then without looking I am willing to bet that your code is broken. See Use CGI or die; for some of the standard pitfalls.