in reply to Re^2: "shift" not working as expected
in thread "shift" not working as expected

Unfortunately I'm not qualified to talk about AnyEvent et. al.

Your code looked strange because of all the closures, but in the case of defining simultaneous call backs this looks like the way to go. :)

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!