And I now see how what I did could never work. I think the term for that is "having sh*t for brains" on my part. I moved the $q->enqueue(1) to before the creation of the threads, and it worked as expected. I think it's time for a break :-)
Just out of curiousity, why are those methods so bad?
In reply to Re^2: failing with Thread::Queue
by rastoboy
in thread failing with Thread::Queue
by rastoboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |