Re: Substituting URLs in PerlOutputFilterHandler
On Mon 10 Nov 2008, Puneet Lakhina wrote:[color=blue]
> essentially im trying to modify <a href="">
> tags in the outgoing HTML pages.
> Now I am trying to do this using PerlOutputFilterHandler. I have the
> following questions:
> a) Is this the right filter to use for an application like this?[/color]
> b) As per my understanding my hander can be invoked multiple times
> based on the no. of buckets. Is this correct?[/color]
> If yes, then how should
> I handle the situation where a part of the tag like say '<a href'
> comes in one bucket and '="">' comes in another.[/color]
The basic idea is to carry around the tail of the current buffer,
the '<a href', in the filter context. The last handler in this chapter
shows the technique.
The OutputFilter routine in Apache2::ClickPath (on CPAN) is another
Need professional mod_perl support?
Just hire me: [email]email@example.com[/email]