in reply to Threading problem with IO::Socket

Don't know if this will help but the reason it returns the "Invalid value..." is because you're assigning a ref to unshared data. Of course, I've never tried this with a Socket (which is basically a blessed glob), so I don't even know if this will fly.

$client{$i} = &share($client);

The & is there to skip over those pesky prototyping errors. Hope this helps.

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1

Replies are listed 'Best First'.
Re: Re: Threading problem with IO::Socket
by rendler (Pilgrim) on Jul 13, 2003 at 06:49 UTC
    Kinda crashed and burned:
    Cannot share globs yet at ./threads.pl line 47.

      Didn't think you could. I was searching for the source for threads::shared as I thought you could only share [\][$@%]. Of course, now that I've looked at the documentation there's no mention of globs. I don't see any way around this. Guess you'll need to wait for 5.8.1. Sorry :-(

      antirice    
      The first rule of Perl club is - use Perl
      The
      ith rule of Perl club is - follow rule i - 1 for i > 1

      Robert,

      have you tried forks.pm:
      http://search.cpan.org/author/ELIZABETH/forks-0.03/lib/forks.pm

      I seems that this is meant to do it!

      But to install forks you need load.pm from the same author:

              http://search.cpan.org/author/ELIZABETH/load-0.05

      I'd like to share results and suggestions, pls mail me directly:

      g o o l y    a t    g m x    d o t    a t

      Good evening to down under (from/to Austr(al)ia),
      carl