You don't need filter. You use the request object, usually called $r, which you get passed in the beginning of your handler. It's what you get back from $f->r() there. If you're using ModPerl::Registry, it will also be in %ENV.
Re^2: How to find Brower name in mod_perl