No Sorry! you still need to thread->create! Just make a thread that listens in the queue with the while (my $msg = $q->dequeue) { ... and it will wait until signalled. You can just use this to hold it up or you can check the contents of $msg and behave accordingly
Cheers,
R.
In reply to Re^3: How do I queue perl subroutines to a thread queue instead of data?
by Random_Walk
in thread How do I queue perl subroutines to a thread queue instead of data?
by static0verdrive
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |