Hello Monks,

I just posted an issue on cpan for CGI::Application which may save somebody some head-banging.

Version 3.1 now has a hook called cgiapp_postrun which is an output filter. However, the sample code in the pod doesn't work at least not in perl 5.8/redhat 9 (v.5.8.0 for i386-linux-thread-multi with patch MAINT18379, says perl -V).

Old Line: $output_ref = \$new_output; # Bad New Line: $$output_ref = $new_output; # Works for me

Aside from this I recommend it! Now building something with CGI::Application, HTML::Template, Mysql and Class::DBI and already it is feeling nice and clean. Definitely the new mysqlcc gui app is pretty nice too.

Enjoy Summer!
Matt R.

2003-06-08 edit ybiC: format with <p> and <code> tags for legibility

  • Comment on Fixed sample code in cgiapp_postrun, a new CGI::Application routine
  • Download Code

Replies are listed 'Best First'.
Re: Fixed sample code in cgiapp_postrun, a new CGI::Application routine
by LTjake (Prior) on Jun 08, 2003 at 12:50 UTC

    FYI, it's also been mentioned on the cgiapp list. Jesse said he'll fix it in the next release.



    --
    "To err is human, but to really foul things up you need a computer." --Paul Ehrlich
      Excellent! Thanks for the link.