Hi
yuri123,
If you just want to do a client/server pair, I think it will be a lot simpler to do it without AnyEvent (which I like and use btw). Usable code for your purpose appears in
perlipc. I'd suggest you get this part working and later figure out the wrinkles of AnyEvent.