1 # input file for testing filter_example.pl
2 use Method::Signatures::Simple;
4 method foo1 { $self->bar }
7 method foo2($bar, %opts) { $self->bar(reverse $bar) if $opts{rev};
11 method foo3 : lvalue { $self->{foo}
14 # change invocant name
16 foo4 ($class: $bar) { $class->bar($bar) }