--- AnyEvent/lib/AnyEvent.pm 2009/03/25 17:33:11 1.195 +++ AnyEvent/lib/AnyEvent.pm 2009/03/26 07:47:42 1.196 @@ -139,6 +139,12 @@ callback when the event occurs (of course, only when the event model is in control). +Note that B +potentially in use by the event loop (such as C<$_> or C<$[>) and that B<< +callbacks must not C >>. The former is good programming practise in +Perl and the latter stems from the fact that exception handling differs +widely between event loops. + To disable the watcher you have to destroy it (e.g. by setting the variable you store it in to C or otherwise deleting all references to it).