From: Duke Leto Date: Sun, 7 Jun 2009 07:04:33 +0000 (+0800) Subject: Make the POD example work correctly X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Runnable.git;a=commitdiff_plain;h=05e7b5d00bb9fc7ac545ae784438a1a659674893 Make the POD example work correctly Signed-off-by: Jonathan Rockway --- diff --git a/lib/MooseX/Runnable.pm b/lib/MooseX/Runnable.pm index 77189dc..a2a65bd 100644 --- a/lib/MooseX/Runnable.pm +++ b/lib/MooseX/Runnable.pm @@ -18,12 +18,13 @@ MooseX::Runnable - tag a class as a runnable application Create a class, tag it runnable, and provide a C method: package App::HelloWorld; + use feature 'say'; use Moose; with 'MooseX::Runnable'; sub run { - my $name = shift; + my ($self,$name) = @_; say "Hello, $name."; return 0; # success }