> But I see that you may have a misconception about what enqueue adds and
> dequeue(_nb) removes.  "enqueue" packages up _all_ of the parameters into a
> single "package" in the queue, which is returned as one set of parameters
> by "dequeue(_nb)".  Try this:
>
> while ( my( $one, $two ) = $q->dequeue_nb ) {
>      print "@$one, @$two\n";
> }
> (prints "1 2, 3 4")
>
> Looking back at the documentation, I guess it could be interpreted the way
> you have interpreted it.  I'll make the documentation better for the next
> version.

You right I did miss understand the documentation.  Your just returning the ref - I 
should have looked the code. That makes so much more sense.

-J

Reply via email to