If you used strict, Perl would tell you where you are going wrong.
Hint: $item and %item are different variables in Perl.
Also, I wouldn't use lock when using queues. A queue should do all the locking your infrastructure needs. Consider communicating back to your master thread using queues. Also consider not using a DBI handle in more than one thread. Personally, I would only create the DBI handle within one thread.
In reply to Re: Threads Enqueue Hashes
by Corion
in thread Threads Enqueue Hashes
by NewtonMan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |