AnyEvent is awesome, but it doesn't fork or thread. It's for co-operative event handling within a single process. You should look at
MCE,
Parallel::Async,
IPC::Fork::Simple,
Parallel::ForkManager,
Thread::Pool::Simple- something like that, which actually opens a new process or thread to do work in parallel (perhaps on separate CPUs, if you have them)
EDIT Or look more at AnyEvent's docs to see how it can be made to fork or thread using any of these: AnyEvent::Fork, AnyEvent::Fork::RPC, AnyEvent::Fork::Pool, AnyEvent::Fork::Remote, Coro::AnyEvent