X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FRunnable.pm;h=a2a65bd752cb92b5fc4484e511a37236356cf086;hb=05e7b5d00bb9fc7ac545ae784438a1a659674893;hp=77189dc2e7c87b18309ada2b8c81be89ef0ca703;hpb=bea71956be57eeea97fba0f6720b2cec8bf07152;p=gitmo%2FMooseX-Runnable.git 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 }