--- AnyEvent/lib/AnyEvent.pm 2006/12/11 01:16:09 1.20 +++ AnyEvent/lib/AnyEvent.pm 2006/12/31 11:54:43 1.22 @@ -163,7 +163,7 @@ You can listen for signals using a signal watcher, C is the signal I without any C prefix. Multiple signals events can be clumped -together into one callback invocation, and callbakc invocation might or +together into one callback invocation, and callback invocation might or might not be asynchronous. These watchers might use C<%SIG>, so programs overwriting those signals @@ -249,7 +249,7 @@ use strict; use Carp; -our $VERSION = '2.5'; +our $VERSION = '2.51'; our $MODEL; our $AUTOLOAD; @@ -290,7 +290,9 @@ for (@REGISTRY, @models) { my ($package, $model) = @$_; - if (eval "require $model") { + if (eval "require $package" + and ${"$package\::VERSION"} > 0 + and eval "require $model") { $MODEL = $model; warn "AnyEvent: autoprobed and loaded model '$model', using it.\n" if $verbose > 1; last;