Hab meinen Fehler schon gefunden:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!perl -w
use strict;
package initialize;
sub new {
my $class = shift;
my $name = shift;
bless \$name,$class;
}
sub IsFulfilled{
my $IsFulfilled = $_[1];
return $IsFulfilled ;
}
sub name {
my $name = shift;
$$name;
}
package Method;
use base qw(initialize);
sub checkIsFulfilled {
}
package NotMethod;
use base qw(initialize);
package ANDArray;
use base qw(initialize);
package ORArray;
use base qw(initialize);
package main;
my $method = Method->new("First Method");
print $method->name();
print $method->IsFulfilled(0);
Last edited: 2011-03-24 14:04:19 +0100 (CET)