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