develooper Front page | perl.ithreads | Postings from June 2008

Re: thread hash bug?

Thread Previous
Jerry D. Hedden
June 4, 2008 06:15
Re: thread hash bug?
Message ID:
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'

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About