But then the docs are misleading. Quote from perldoc Thread::Queue::Any:
dequeueIf I enqueue() a scalar I expect to dequeue() a scalar and not a list.
($string,$scalar,$listref,$hashref) = $queue->dequeue;The "dequeue" method removes a reference from the head of the queue, dereferences it and returns the resulting values. If the queue is currently empty, "dequeue" will block the thread until another thread "enqueue"s.
In reply to Re^2: Thread::Queue::Any->dequeue trouble
by mrd
in thread Thread::Queue::Any->dequeue trouble
by mrd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |