Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Can't find string terminator "end_of_html" anywhere before EOF at jsdisp.cgi line 37.

by Roger (Parson)
on Aug 15, 2005 at 13:07 UTC ( #483840=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Can't find string terminator "end_of_html" anywhere before EOF at jsdisp.cgi line 37.
Download Code
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://483840]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2015-07-08 04:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls