Path::Dispatcher is a Perl module that allows you to find code to run based on matching a path against a list of rules. . The basic operation is that of dispatch. Dispatch takes a path and a list of rules, and it returns a list of matches. From there you can "run" the rules that matched. These phases are distinct so that, if you need to, you can inspect which rules were matched without ever running their codeblocks. . Path::Dispatcher was inspired by the Jifty web framework's dispatcher, Jifty::Dispatcher.