[Bps-public-commit] r16587 - in Path-Dispatcher/trunk: lib/Path/Dispatcher
sartak at bestpractical.com
sartak at bestpractical.com
Tue Oct 28 17:40:17 EDT 2008
Author: sartak
Date: Tue Oct 28 17:40:17 2008
New Revision: 16587
Modified:
Path-Dispatcher/trunk/ (props changed)
Path-Dispatcher/trunk/lib/Path/Dispatcher/Declarative.pm
Log:
r74710 at onn: sartak | 2008-10-28 17:40:14 -0400
Add a rewrite example to the PDD synopsis
Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Declarative.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Declarative.pm (original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Declarative.pm Tue Oct 28 17:40:17 2008
@@ -193,6 +193,8 @@
on ['wield', qr/^\w+$/] => sub { wield_weapon($2) };
+ rewrite qr/^inv/ => "display inventory";
+
under display => sub {
on inventory => sub { show_inventory() };
on score => sub { show_score() };
More information about the Bps-public-commit
mailing list