in reply to What is the correct way to use Thread::Queue::Any ?
sub consumer { while( my($returned_value) = $queue->dequeue ) { printf "I have been returned: %i\n", $returned_value; } }
I think you're being fooled by printf(). The "%i" turns an undef value into 0.
Liz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: What is the correct way to use Thread::Queue::Any ?
by fx (Pilgrim) on Jan 07, 2004 at 17:45 UTC | |
by liz (Monsignor) on Jan 07, 2004 at 17:56 UTC | |
by ysth (Canon) on Jan 07, 2004 at 20:03 UTC |