I assume you mean AnyEvent::Util
and not AnyEvent::Tool
.
Otherwise, I haven't tried out your program, but it looks like a textbook example of using condvars
and run_cmd
to me. It certainly is close to what I would write myself (I am the author of AnyEvent
), gets the tricky parts right (having an outer begin/end in case @files
is empty), does error checking and so on.
So if you ask me, you actually did read the docs and used your knowledge to pass the exam :)