http://www.perlmonks.org?node_id=676208


in reply to Perl Generating error on display.

Are you seeing any error message anywhere? For example in the browser window or the server logs?

Does the page load but the javascript doesn't seem to work? If so load both the CGI and HTML pages in your web browser. Save each webpage to a separate file and compare the two saved files.

Try requesting the CGI and HTML pages using wget -S to see the headers sent by the server. Maybe you need to specify the Content-type in the print header(); call.