Just for other people's notes, the CGI::Application way would be to return the page's text or a reference to it at the end of your script and then C'A takes care of the task of sending the http headers and page to the browser. You are normally expected to not print.