Less than half an hour to have an answer !!!!
And the code is correctly running (my work now is to understand this cryptic
code ;-))
Thanks a lot
2008/7/1 Torsten Foertsch <[EMAIL PROTECTED]>:
> On Tue 01 Jul 2008, titetluc titetluc wrote:
> > I am facing a problem: I would like to call sub-requests, but the content
> > of these sub-requests should not 'pollute' the main request.
>
> my $content='';
> my $subr=$r->lookup_uri( $tmpl );
> $subr->add_output_filter( sub {
> my ($f, $bb) = @_;
> while (my $e = $bb->first) {
> $e->read(my $buf);
> $content.=$buf;
> $e->delete;
> }
> return Apache2::Const::OK;
> } );
> $subr->run;
>
> Torsten
>
> --
> Need professional mod_perl support?
> Just hire me: [EMAIL PROTECTED]
>