The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MooseX::Function::Parameters

SYNOPSIS

    use MooseX::Function::Parameters;

    fun add (Int $a, Int $b) {
        $a + $b
    }

    package My::Class;
    use Moose;
    use MooseX::Function::Parameters;

    method compare (My::Class $with) {
        $self->value <=> $with->value
    }

DESCRIPTION

A lightweight wrapper around Function::Parameters which provides fun and method subroutine keywords which integrate with the Moose type system.

Designed to be compatible with Function::Parameters version 1, where newer versions of Function::Parameters aren't