The solution I'm afraid is "Don't use Thread::Pool or Thread::Pool::Simple". They're broken.
Anything you enqueue (using the ->add() method) gets stringified using Storable, and so by the time your threads get something, it is a frozen/thawed copy of the original. Nothing they do to it will ever be reflected back to the original. They are just horribly, horribly broken.
If you would care to describe your real application, I'd have a go a suggesting an approach to solving it.
In reply to Re: Multi-threads newbie questions
by BrowserUk
in thread Multi-threads newbie questions
by daverave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |