Tom Schindl <[EMAIL PROTECTED]> writes:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> [...]
> Joe Schaefer schrieb:
>
> |      my $content = "";
> |      $subr->add_output_filter(bless sub : FilterRequestHandler {
> |        my ($f, $bb) = @_;
> |        while (my $e = $bb->first) {
> |            $e->read(my $buf);
> |            $content .= $buf;
> |            $e->delete;
> |        }
> |        return Apache2::Const::OK;
> |      });
> |
> |     $subr->run; # reads entire subrequest into $content
>
> just for curiosity why do you bless the sub?

Cargo cult, I suppose; AFAICT it's not necessary.
Thanks for the spot.

-- 
Joe Schaefer

Reply via email to