To "take a reference to a method call", you have to use an anonymous subroutine, or else Perl can't tell whether you want to take a reference to the call or to its return value:
my $childThread = threads->new( sub { $self->childThreadWrite }, $l_cqrdMessage);That may not work, though, as objects can't be shared in 5.8.0 threads.
In reply to Re: Containing threads in object instances
by chromatic
in thread Containing threads in object instances
by tid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |