On Tue, Jan 27, 2009 at 1:22 PM, Terrence Brannon <
[email protected]> wrote:

> My action routines are returning subclasses of HTML::Tree, which I then
> turn into strings in my cgiapp_postrun method like so:
>
> sub cgiapp_postrun {
>   my ($self, $html_tree) = @_;
>
>   return $$html_tree->stringify() ;
> }
>
>
aha! if only I would read the docs... i'm supposed to alter the input body
if I want change, not just return what I want... this works just fine:

 sub cgiapp_postrun {
  my ($self, $html_tree) = @_;

  $$html_tree = ref ${$html_tree} ? ${$html_tree}->stringify() : $$html_tree
;

}

#####  CGI::Application community mailing list  ################
##                                                            ##
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
##                                                            ##
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:          http://cgiapp.erlbaum.net/                 ##
##                                                            ##
################################################################

Reply via email to