Thread Variable Thread definieren (6 answers)
Opened by Froschpopo at 2005-04-07 11:21

Froschpopo
 2005-04-07 11:21
#53509 #53509
User since
2003-08-15
2653 Artikel
BenutzerIn
[default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use threads;

my $th_inc = threads->new( \&kind );

sub kind {
my $var = 0;
while(1) {
$var++;
fertig($var);
last if $var == 10;
}
return 0;
}

sub fertig {
# hier steht nichts drin
}


da sagt er mir:
Can't undef active subroutine during global destruction.

was soll das bedeuten?

View full thread Variable Thread definieren