--- "Hemond, Steve" <[EMAIL PROTECTED]> wrote:
> 
> Instead of embedding perl code in html files to
> generate stuff from a
> database, I would just have to write an entire perl
> file that will print
> the html code (like the example I've shown above)
> and do the
> manipulations on the database at the same time. I'm
> just wondering if
> this is a good idea, or if I am missing the features
> of mod_perl at all.
> 
I don't think that's a good idea, putting the html
code in the script. Of course, it depends on how much
html you are talking about. I code web apps using 
CGI::Application with HTML::Template ( or
Template-Toolkit), then I simply run the apps as
registry scripts since I don't need the power of
handlers.

CGI::Application -
http://search.cpan.org/search?query=CGI%3A%3AApplication&mode=all
Choosing a Templating System -
http://perl.apache.org/docs/tutorials/tmpl/comparison/comparison.html
ModPerl::Registry -
http://perl.apache.org/docs/2.0/api/ModPerl/Registry.html

Paul


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to