package Foo::Bar; use Apache::Constants qw( OK SERVER_ERROR ); use strict; @Foo::Bar::ISA = qw(Foo); sub dispatch_baz { my $r = Apache->request; $r->send_http_header('text/plain'); $r->print("Foo::Bar->dispatch_baz()"); print STDERR "Foo->dispatch_baz()\n"; return OK; } 1; __END__ here is a sample httpd.conf entry PerlModule Apache::Dispatch PerlModule Foo SetHandler perl-script PerlHandler Apache::Dispatch DispatchPrefix Foo DispatchExtras Pre Post Error once you install it, you should be able to go to http://localhost/Test/foo or http://localhost/Test/Bar/foo etc, and get some results