File: filter_example.in

package info (click to toggle)
perltidy 20101217-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,624 kB
  • sloc: perl: 18,913; makefile: 47
file content (16 lines) | stat: -rw-r--r-- 342 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# input file for testing filter_example.pl
use Method::Signatures::Simple;

 method foo { $self->bar }

       # with signature
    method foo($bar, %opts) { $self->bar(reverse $bar) if $opts{rev};
    }

    # attributes
    method foo : lvalue { $self->{foo} 
}

 # change invocant name
    method 
foo ($class: $bar) { $class->bar($bar) }