I think he means
my $controlSocket;
should be
my $controlSocket :shared;
Variables aren't automatically shared.
In reply to Re^3: Threaded Sockets, access from outside thread?
by ikegami
in thread Threaded Sockets, access from outside thread?
by ecuguru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |