There's more than one way to do things | |
PerlMonks |
Re: How to create a two dimensional queue in Perlby rjt (Curate) |
on Aug 04, 2013 at 09:53 UTC ( [id://1047782]=note: print w/replies, xml ) | Need Help?? |
Based on your previous questions1, you are probably talking about threads. As Corion pointed out, Thread::Queue provides queue functionality to threads. According to its documentation (reformatted for brevity):
Your question here is very vague (please read How do I post a question effectively?), but taking your meaning of "two dimensional queues" as literally as I can, I believe a simple anonymous array ref (constructed with [ ... ]) would work for you. Something like this:
That's pretty much the pattern. You should be able to easily adapt it to your needs. If not, write up a better description of what you need, and we'll help you from there. ____________
In Section
Seekers of Perl Wisdom
|
|