X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=examples%2Ffilter_example.in;h=72f2666d831974bd838801e34139fc862ba8e3af;hb=044e28d155fe56271a71d8f4fb60cfb14fdf3508;hp=70172e5ee9e6ebb07feb1a63fd679eb14e3c605c;hpb=5c180637bf79ffc2af10f6654d308ce39e2f1f67;p=perltidy.git diff --git a/examples/filter_example.in b/examples/filter_example.in index 70172e5..72f2666 100644 --- a/examples/filter_example.in +++ b/examples/filter_example.in @@ -1,16 +1,16 @@ # input file for testing filter_example.pl use Method::Signatures::Simple; - method foo { $self->bar } + method foo1 { $self->bar } # with signature - method foo($bar, %opts) { $self->bar(reverse $bar) if $opts{rev}; + method foo2($bar, %opts) { $self->bar(reverse $bar) if $opts{rev}; } # attributes - method foo : lvalue { $self->{foo} + method foo3 : lvalue { $self->{foo} } # change invocant name method -foo ($class: $bar) { $class->bar($bar) } +foo4 ($class: $bar) { $class->bar($bar) }