Hello,

Given:

--
use Thread::Queue::Any;

my $q = new Thread::Queue::Any;
$q->enqueue(
        [ 1, 2],
);
--

I was wondering why:

--
my( $one, $two ) = @{ $q->dequeue_dontwait };
print "$one, $two\n";
--

Doesn't work but:

--
my( $list ) = $q->dequeue_dontwait;
my( $one, $two ) = @{ $list };
print "$one, $two\n";
--

Does?

Cheers,

-J

--
"Suppose you were an idiot. And suppose you were a member of Congress. But I repeat 
myself." -- Mark Twain

Reply via email to