in reply to Re: How does AnyEvent work?in thread How does AnyEvent work?
In general, you run a second process and send it commands to perform.
See for example AnyEvent::Run, AnyEvent::Fork or any of the RPC modules.