perl.ithreads
[Top] [All Lists]

Re: thread hash bug?

Subject: Re: thread hash bug?
From: jdhedden@xxxxxxxx (Jerry D. Hedden)
Date: Wed, 4 Jun 2008 09:14:59 -0400
Newsgroups: perl.ithreads

Wong, Danny H. wrote:
> I'm trying to created a hash of array inside a thread, but the hash
> loses all its keys/values when leaving the function. Is there a bug in
> using a hash inside a thread? Any ideas?

1. use strict;
2. use warnings;
3. Read 'perldoc threads::shared'

<Prev in Thread] Current Thread [Next in Thread>