On Fri, Jun 26, 2009 at 6:36 PM, Anthony R Fletcher<a...@mail.nih.gov> wrote:
> Perrin asks what am I doing. I want to create a custom directory listing
> and modify the output of various file formats when they match a
> particular regexp. All the other files (like CGI scripts) should pass
> through untouched to be dealt with by Apache as if the perl handle
> wasn't there.

I'm still not quite getting it.  If you want to do a custom directory
listing, that's easy enough.  You can match URLs that end in /.  There
are some examples of directory handlers on CPAN too.  I think they're
for mod_perl 1, but I think you'll be able to get the idea from them.

Or, if what you're trying to do is run a CGI or PHP script and do
something to the output, you should write a filter instead of a
response handler.

- Perrin

Reply via email to