Your entire dispatch table can be replaced by the following 2 lines:
$action = $apr->param('a') || 'home'; render_template( $action, $action );
In reply to Re: Reducing the complexity of dispatch tables
by BrowserUk
in thread Reducing the complexity of dispatch tables
by hacker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |