in reply to small cgi output problem

Quick hint, and cause celebre on this site.
At the top of your code, insert the line:
use strict;
And see what it tells you. It may help.

Cheers,

Malk