Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: How to create a two dimensional queue in Perl

by james2vegas (Chaplain)
on Aug 04, 2013 at 09:38 UTC ( #1047780=note: print w/ replies, xml ) Need Help??


in reply to Re^2: How to create a two dimensional queue in Perl
in thread How to create a two dimensional queue in Perl

Sounds like you want to just use Thread::Queue objects inside a Thread::Queue, dequeue from the parent, then work on the child. A potential problem with this is that you can't modify the child queue in place (except by peeking) and would potentially have to keep a reference to it separate from the parent queue.

Alternatively you could use an actual state machine implementation from CPAN.


Comment on Re^3: How to create a two dimensional queue in Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1047780]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2015-07-02 11:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (34 votes), past polls