[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] CGI::FormBuilder -- cgiapp_postrun -- template default


I don't want to clutter the mail list with three
messages since these are not questions.

  requested feedback on CGI::FormBuilder

I haven't found any problems using CGI::FormBuilder
with CGI::Application.  I use it all the time.  When
I finish a small application, I'll post a link to it.

  program structuring feedback

Thanks for all the good feedback on structuring a
program.  So I used cgiapp_postrun today to filter
the output properly.

One problem in the example:

             sub cgiapp_postrun {
               ...
               # Replace old output with new output
               $output_ref = \$new_output;
             }

I found I had to use:  $$output_ref = $new_output;

Or the filtered code was not returned since the
calling program hangs on to the reference as its
location of the output.

  template default

I'll give my two cents.  Yes, I like the default
feature for those of us who just start out and it
is one thing less to master.  I do think it could
be slightly improved to accept a filename or a
reference (for lines) with no change to the current
API.  My opinion on more error control is simply turn
on "use CGI::Carp qw/fatalsToBrowser/;" to force
output errors to be seen.

Sincerely,

David Scott

__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.