Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

how can I extract the html out of a mod_perl response before it's sent to the client?

Replies are listed 'Best First'.
Re: mod_perl response
by strat (Canon) on Mar 14, 2002 at 15:08 UTC
    With Apache2.0 and mod_perl 2.0 (both in beta), you could build handler-queues (first is e.g. mod_perl and the second another filter). But I don't know a direct way. Just maybe if you write Code with Apache::Registry, you could perhaps build a string containing the whole HTML-code, filter it or do whatever you want and then return it to browser. But I'm not sure if this is in the sense of mod_perl :-)

    Please, beware that I don't know much about Webprogramming, since I hardly ever cope with cgi, mod_perl or the like...

    Best regards,
    perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"

Re: mod_perl response
by rdfield (Priest) on Mar 14, 2002 at 15:07 UTC
Re: mod_perl response
by perrin (Chancellor) on Mar 14, 2002 at 18:02 UTC