Add -d to the #! line?
(A private message from the OP seems to confirm my guess.)
In reply to Re: CGI equivalent of Apache::DB? by ikegami in thread CGI equivalent of Apache::DB? by gurbo