5 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl
use warnings;
use strict;
use threads;
use threads::shared;
my $th_inc = threads->new( \&kind );
my $var = "perlcommunity";
share($var);
sub kind {
print "$var\n";
return 0;
}
sleep(2); # auf das Kind warten
Use of uninitialized value in string at tktest.pl line 15.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl
use Tk;
use threads;
use threads::shared;
my %hash = ();
share(%hash);
my $t = threads->new(\&kind);
$hash{main} = MainWindow->new();
$hash{hm} = "test";
sub kind {
return 0;
}
sleep(3);
Invalid value for shared scalar at tktest.pl line 13.
5 Einträge, 1 Seite |