Thread Can't call method - Wertzuweisung schlägt fehl? (16 answers)
Opened by Karakash at 2011-03-24 09:51

Gast Karakash
 2011-03-24 09:51
#146843 #146843
Servus,

ich bekomme den Fehler und kann imho den Fehler nicht finden.

Könnte jdm bitte mal drüber schauen?

Code: (dl )
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
#!perl -w

use strict;


package initialize;
sub new() {
my $IsFulfilled = 0;
my $self=shift;
my $newInst={};
bless($newInst,$self);

}

package Method;
use base 'initialize';
sub new(){
my $name;
}
sub checkFulfilled()
{
return $initialize::IsFulfilled ;
}

my $method = Method -> new();
$method::IsFulfilled = 0;
print $method::IsFulfilled;
$method->checkFulfilled(); # hier taucht der Err auf, obwohl IsFulfilled direkt oben drüber gesetzt wird und in der Konsole auch 0 erscheint...
print $method::IsFulfilled;

Last edited: 2011-03-24 09:59:04 +0100 (CET)

View full thread Can't call method - Wertzuweisung schlägt fehl?