I'm using signatures for my Controllers, and all works well.  I'd like to 
use them for helpers in my plugins,  but it doesn't appear to work.

use v5.22;
$app->helper(  logme => sub ( $c,$str ) {     $c->app->log->info($str)   });

gives error: Illegal character in prototype for ? : $self

working code
$app->helper(  logme => sub {
            my ($c, $str) = @_;
            $c->app->log->info($str);
 });

am I doing something wrong, or do subroutine signatures not work with 
anonymous subs under mojo helpers ?


-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to