All:
I'm having good success sharing variables across threads with the
exception of filehandles. I have tried creating filehandles in a couple
of way including using "open $fh". This mini-simulation illustrates the
problem.
<code snipettes>
use threads;
use threads::shared;
use FileHandle;
my $fh = new FileHandle; #also tried "my $fh : shared = new FileHandle;"
my %hash : shared;
my $index;
$hash{$index} = \$fh;
results in:
"thread failed to start: Invalid value for shared scalar at module line
614, <$client> line 1."
I need to move filehandles. Any ideas?
Best,
Steve