http://qs321.pair.com?node_id=483840


in reply to Can't find string terminator "end_of_html" anywhere before EOF at jsdisp.cgi line 37.

The source of your problem has been pointed out so I am not going to comment on it.

A couple of suggestions:

1) Use the CGI module properly. Use the provided functions such as start_html, end_html, a(), popup_menu, etc...

use CGI qw/ :all /; ... print start_html(-title=>'Job Status Display Page'), 'Select year and month.', br(), p( a({href=>"/jsdisp.html"}, "Back") ), end_html(), "\n";
2) Have a look at tools such as HTML::Mason and Template::Toolkit. These are well proven modules for doing web programming quick and effectively.

Replies are listed 'Best First'.
Re^2: Can't find string terminator "end_of_html" anywhere before EOF at jsdisp.cgi line 37.
by bradcathey (Prior) on Aug 15, 2005 at 13:27 UTC

    Good points! But don't forget the easy-to-use HTML::Template, a PM favorite.


    —Brad
    "The important work of moving the world forward does not wait to be done by perfect men." George Eliot
Template::Toolkit Vs. Template-Toolkit
by dorward (Curate) on Aug 15, 2005 at 19:54 UTC

    Template::Toolkit doesn't actually exist (I used to make this mistake until somebody corrected me). Template-Toolkit is based about the Template module.