Hi,
Are there any known issues with sharing thread variables across "require"'d files? I will do this:
my %tid : shared;
sub start_th {
$tid{hello} = 99999;
require "child.pl";
...
}
where child.pl somewhere contains:
$tid{hello} = 11111;
If I make %tid shared, the value of $tid{hello} is 99999, even though child.pl is supposed to be setting it to 11111 in the same thread. If I set $tid{hello} to 11111 in the parent.pl (without the require), it correctly sets to 11111. If I don't share %tid at all, it correctly returns 1111 1 even with the require, but now I can't access the value from outside that thread. I tried putting/not putting the require in a BEGIN, everything. thanks!