[Bps-public-commit] Path-Dispatcher branch, master, updated. 139adf273504585e6299b3722cb43c3d61d806e9

sartak at bestpractical.com sartak at bestpractical.com
Thu Mar 26 21:17:20 EDT 2009


The branch, master has been updated
       via  139adf273504585e6299b3722cb43c3d61d806e9 (commit)
      from  ee8bbf3b597de4047e79304b7614fd5570d6e75c (commit)

Summary of changes:
 lib/Path/Dispatcher/Rule.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 139adf273504585e6299b3722cb43c3d61d806e9
Author: Shawn M Moore <sartak at gmail.com>
Date:   Thu Mar 26 21:17:05 2009 -0400

    Better example, since you should always run coderefs through $match->run

diff --git a/lib/Path/Dispatcher/Rule.pm b/lib/Path/Dispatcher/Rule.pm
index 2f23a30..dc8e3a4 100644
--- a/lib/Path/Dispatcher/Rule.pm
+++ b/lib/Path/Dispatcher/Rule.pm
@@ -154,7 +154,7 @@ Path::Dispatcher::Rule - predicate and codeblock
 
     my $match = $rule->match("quit"); # creates a Path::Dispatcher::Match
 
-    $rule->run; # exits the program
+    $match->run; # exits the program
 
 =head1 DESCRIPTION
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list