Hi Lance, That's a good idea -- I would always suggest you leverage HTML::Template's power (and code/content separation) where possible.
I would also suggest that you consider replacing CGI.pm with CGI::Simple. It's basically CGI.pm without any html generation capabilities. The nice side-effect of using CGI::Simple is that, in general, your app will run faster. Docs: http://search.cpan.org/author/JFREEMAN/Cgi-Simple-0.06/Simple.pm Some benchmarks: http://search.cpan.org/src/JFREEMAN/Cgi-Simple-0.06/cgi-simple_vs_cgi-pm .html By default, CGI::App uses CGI.pm. To override this behavior, overload the cgiapp_get_query() sub. sub cgiapp_get_query { my $self = shift; use CGI::Simple; my $q = CGI::Simple->new(); return $q; } NB: To debug a script that uses CGI::Simple from the command line you'll have to change the DEBUG level to 1 to get key-value pairs from @ARGV or 2 to get them from STDIN. See the docs for more: http://search.cpan.org/author/JFREEMAN/Cgi-Simple-0.06/Simple.pm#DEBUGGI NG Anyway, HTH, -Brian > -----Original Message----- > From: Lance A. Brown [mailto:[EMAIL PROTECTED] > Sent: Friday, June 06, 2003 2:37 AM > To: CGI Application List > Subject: [cgiapp] Re: Re: Weird Error with CGI::App and HTML::Template > > OK. Y'all have convinced me. I'm gonna write the form stuff into the > HTML and pull the CGI.pm calls and see what happens... Bedtime for > bonzo here first, though. We'll see what tomorrow brings. http://www.gordano.com - Messaging for educators. --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
