From: Marcus Ramberg Date: Fri, 15 Apr 2005 14:52:38 +0000 (+0000) Subject: Fixed: Invalid sub names in intro X-Git-Tag: 5.7099_04~1525 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=4c6807d23bc260aad9d8e67945e18ea8805c9ae2 Fixed: Invalid sub names in intro --- diff --git a/lib/Catalyst/Manual/Intro.pod b/lib/Catalyst/Manual/Intro.pod index 28a08d6..8e58d7f 100644 --- a/lib/Catalyst/Manual/Intro.pod +++ b/lib/Catalyst/Manual/Intro.pod @@ -234,10 +234,10 @@ The last of these, the stash, is a universal hash for sharing data among applica sub hello : Global { my ( $self, $c ) = @_; $c->stash->{message} = 'Hello World!'; - $c->forward('show-message'); + $c->forward('show_message'); } - sub show-message : Private { + sub show_message : Private { my ( $self, $c ) = @_; $c->res->output( $c->stash->{message} ); } @@ -399,16 +399,16 @@ You control the application flow with the C method, which accepts the k sub hello : Global { my ( $self, $c ) = @_; $c->stash->{message} = 'Hello World!'; - $c->forward('check-message'); + $c->forward('check_message'); } - sub check-message : Private { + sub check_message : Private { my ( $self, $c ) = @_; return unless $c->stash->{message}; - $c->forward('show-message'); + $c->forward('show_message'); } - sub show-message : Private { + sub show_message : Private { my ( $self, $c ) = @_; $c->res->output( $c->stash->{message} ); }