Well, you need mod_perl if you want to query Apache internals from a Perl program. But fortunately, mod_perl has a built-in feature called
Apache::Status that allows you to go to http://www.example.com/perl-status or whatever and see a nice hypertext listing of all the Perl-related status info.