in reply to CGI script random hangs - seemingly Perl or Apache related

YMMV, but I seem to recall fixing this once with $|=1; to shut off the buffering.

HTH, --traveler