in reply to Using AnyEvent

Since no one else has answered yet; :-)

I'm not an expert on AnyEvent, or exactly what $cv->recv is supposed to be reading, but in general, you use sysread in an select loop to avoid blocking. Look at AnyEvent::Handle for example. It uses sysread but it hides it in the module. Also see AnyEvent for I/O events for a good example.

It would help if you posted a working code example.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh