From: Dave Rolsky Date: Sun, 3 May 2009 18:11:06 +0000 (-0500) Subject: Remove $next->($self, ...) in favor of $self->$next(...) X-Git-Tag: 0.78~42 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3ae20eb66b653363962353dbe4937cd793923f42;p=gitmo%2FMoose.git Remove $next->($self, ...) in favor of $self->$next(...) --- diff --git a/lib/Moose/Cookbook/FAQ.pod b/lib/Moose/Cookbook/FAQ.pod index 3fd9e02..d274f5c 100644 --- a/lib/Moose/Cookbook/FAQ.pod +++ b/lib/Moose/Cookbook/FAQ.pod @@ -216,7 +216,7 @@ of the main method. Here is an example: unless ($options->{bar} eq 'foo') { return 'bar'; } - $next->($self, %options); + $self->$next(%options); }; By choosing not to call the C<$next> method, you can stop the