File: TestClass.pm

package info (click to toggle)
perl4caml 0.9.5-8
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 540 kB
  • sloc: ml: 1,572; ansic: 957; makefile: 186; perl: 45
file content (23 lines) | stat: -rw-r--r-- 269 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package TestClass;

sub new
  {
    my $class = shift;
    my $self = { foo => 1 };
    bless $self, $class;
  }

sub get_foo
  {
    my $self = shift;
    $self->{foo}
  }

sub set_foo
  {
    my $self = shift;
    my $value = shift;
    $self->{foo} = $value
  }

1;