1234567891011121314151617
#!/usr/bin/perluse warnings;use strict;use threads;use threads::shared;my $var : shared = 0;my $th_inc = threads->new( \&kind );sub kind { $var++; return 0;}print "$var\n"; # sollte 1 ergeben