Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 15 lines (10 sloc) 0.677 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Method::Signatures provides two new keywords, func and method, so that you
can write subroutines with signatures instead of having to spell out my
    $self = shift; my($thing) = @_

* func is like sub but takes a signature where the prototype would normally
  go. This takes the place of my($foo, $bar) = @_ and does a whole lot more.

* method is like func but specifically for making methods. It will
  automatically provide the invocant as $self. No more my $self = shift.

Also allows signatures, very similar to Perl 6 signatures.

Also does type checking, understanding all the types that Moose (or Mouse) would understand.

And it does all this with no source filters.
Something went wrong with that request. Please try again.