in reply to How to find Brower name in mod_perl
I don't know anything about modperl, however it looks like you need to use Apache2::Filter and use it to extract the user agent from the headers, something like :
$f->r->headers_in->{'User-Agent'}
See the Modperl documentation for more information.
In Section
Seekers of Perl Wisdom