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

Re: [cgiapp] Re: Error using cgiapp_postrun


> > pktm <suppressed> wrote:
> > sub cgiapp_postrun {
> >     my $self = shift;
> >     my $output_ref = shift;
> >     my $template = $self->load_tmpl('adminINdex.html');
> >     $template->param('inhalt' => $output_ref );
> >     $output_ref = $template->output();
> > } # cgiapp_postrun
>
> > I#M only reciving the content of the runmodes CGI::Application is running.
> > The postrun isn' t beeing runned.
> > Why?
> 
> Mark Stosberg wrote:
> Your syntax for cgiapp_postrun looks OK. Here are some debugging
> suggestions:

Mark, I think the last line within the block should read:

           $$output_ref = $template->output();
           ^^
That's at least what the docs say.

So, Alexander, while it's true - as I wrote to you - that the return
value of cgiapp_postrun() is discarded, modification of $output_ref
is done, well, "by reference".                                  ^^^

Cheers,

 Bodo

---------------------------------------------------------------------
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.