http://www.perlmonks.org?node_id=1002645


in reply to Creating A Single Threaded Server with AnyEvent

You are recursively calling $cv->recv, instead you should, when you create your new condvar, associate a callback which will be called when you send on your $cv