in reply to Re: Placing references onto thread queues (Perl 5.8)
in thread Placing references onto thread queues (Perl 5.8)

Ok, it works if I remove "use threads;"...
  • Comment on Re: Re: Placing references onto thread queues (Perl 5.8)

Replies are listed 'Best First'.
Re: Re: Re: Placing references onto thread queues (Perl 5.8)
by liz (Monsignor) on Dec 16, 2003 at 20:16 UTC
    No, it doesn't.

    By removing use threads, you are basically disabling shared variables, making the process of sharing a variable a noop.

    What you have without use threads is a very expensive, object oriented way of pushing and popping an array in a single process.

    Liz