[Bps-public-commit] r17441 - in Path-Dispatcher/trunk: lib/Path

sartak at bestpractical.com sartak at bestpractical.com
Tue Dec 30 14:20:36 EST 2008


Author: sartak
Date: Tue Dec 30 14:20:31 2008
New Revision: 17441

Modified:
   Path-Dispatcher/trunk/   (props changed)
   Path-Dispatcher/trunk/lib/Path/Dispatcher.pm

Log:
 r78059 at onn:  sartak | 2008-12-29 23:47:34 -0500
 Verbiage tweaks


Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher.pm	Tue Dec 30 14:20:31 2008
@@ -63,6 +63,7 @@
 sub run {
     my $self = shift;
     my $path = shift;
+
     my $dispatch = $self->dispatch($path);
 
     return $dispatch->run(@_);
@@ -75,7 +76,7 @@
     my $package = caller;
 
     if (@_) {
-        Carp::croak "use Path::Dispatcher (@_) called by $package. Did you mean Path::Dispatcher::Declarative?";
+        Carp::croak "'use Path::Dispatcher (@_)' called by $package. Did you mean to use Path::Dispatcher::Declarative?";
     }
 }
 
@@ -124,7 +125,7 @@
 inspect which rules were matched without ever running their codeblocks.
 
 Most consumers would want to use L<Path::Dispatcher::Declarative> which gives
-you some sugar inspired by L<Jifty::Dispatcher>.
+you some sugar, inspired by L<Jifty::Dispatcher>.
 
 =head1 ATTRIBUTES
 
@@ -134,8 +135,8 @@
 
 =head2 name
 
-A human-readable name; this will be used in the (currently nonexistent)
-debugging hooks.
+A human-readable name; this will be used in the debugging hooks. In
+L<Path::Dispatcher::Declarative>, this is the package name of the dispatcher.
 
 =head1 METHODS
 



More information about the Bps-public-commit mailing list