laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
A couple of quick things ...
With CGI::Application, you return a Content-Type header as part of your output string. The production of headers is handled by CGI::Application which defaults to headers of text/html type - This can modified through the use of the $self->header_type() and $self->header_props methods imported from CGI::Application. eg.
Also too, you may want to look at usage of the HTML::Template module for HTML output through the load_tmpl method offered by CGI::Application.
Onto the specific problem which you are experiencing, the error is being raised within the query method of the CGI::Application module as it attempts to return a CGI object.
As for my personal opinion of CGI::Application, I am a strong proponent of it and have used it extensively within a number of projects, the framework which it offers, reducing my development time enormously. I have also submitted a review of my thoughts on CGI::Application here which may also be of use.
Update Read the comments from data64 and chipmunk on your definition of a new method within your class - There is no need to do this (unless you are seeking to change native CGI::Application behaviour), with the ability to define run-time parameters either through the setup method or through parameters passed from your instance script ... See the CGI::Application review/documentation for more on this
Ooohhh, Rob no beer function well without! In reply to Re: CGI::Application Error
by rob_au
|
|