in reply to Buffered STDIN
Also, you really should be using CGI.pm. Take a look at the node use CGI or die;