Loading ...
Sorry, an error occurred while loading the content.

Re: [ANNOUNCE] Apache2::TrapSubRequest 0.03

Expand Messages
  • Joe Schaefer
    ... Cargo cult, I suppose; AFAICT it s not necessary. Thanks for the spot. -- Joe Schaefer
    Message 1 of 11 , Jun 10, 2005
    • 0 Attachment
      Tom Schindl <tomAtLinux@...> 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
    Your message has been successfully submitted and would be delivered to recipients shortly.