Wouldn't $r->push_handlers($hook,\&handler) do the trick, also?

$r->push_handlers(PerlCleanupHandler,\&oh_you_wanted_a_CEEEE_module);



-----Original Message-----
From: Per Einar Ellefsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 5:16 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: SSI and mod_perl


At 23:09 27.08.2002, Jay Thorne wrote:
>In a mod_perl handler, in the m_p1.x/apache1.3 api, Is there a quick way to
>tell apache
>"I'm done, here's my content, and I want you to run this through
mod_include
>before you send it to the user"

You might want to try a filter, for example Apache::OutputChain, see 
http://perl.apache.org/docs/1.0/guide/modules.html#Apache__OutputChain____Ch
ain_Stacked_Perl_Handlers 
and the Apache::OutputChain manpage formore information. The same is true 
for Apache::Filter: 
http://perl.apache.org/docs/1.0/guide/modules.html#Apache__Filter___Alter_th
e_output_of_previous_handlers 
. Both provide approximately the same functionality.


-- 
Per Einar Ellefsen
[EMAIL PROTECTED]



------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or 
error-free.  Therefore, we do not represent that this information is complete or 
accurate and it should not be relied upon as such.  All information is subject to 
change without notice.


Reply via email to