We don't bite newbies here... much | |
PerlMonks |
Re^5: Doing an Input->process->Output cycle with AnyEvent? (was: error: "recursive blocking wait detected")by james2vegas (Chaplain) |
on Oct 17, 2010 at 01:23 UTC ( [id://865755]=note: print w/replies, xml ) | Need Help?? |
Yes, from your description you seem to be trying to shoehorn a sequential program into an event loop. AnyEvent (or POE, or IO::Async, or whatever) is not a hammer for every nail, it is not always appropriate, but I'm not certain I'd recommend threads either, perhaps a combination of fork and some form of IPC (using one of the fine modules on CPAN, such as Parallel::ForkManager) might be better. It would definitely make good use of your pre-emptive, multi-tasking operating system.
In Section
Seekers of Perl Wisdom
|
|