ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent.pm (file contents):
Revision 1.20 by root, Mon Dec 11 01:16:09 2006 UTC vs.
Revision 1.22 by root, Sun Dec 31 11:54:43 2006 UTC

161 161
162=head2 SIGNAL WATCHERS 162=head2 SIGNAL WATCHERS
163 163
164You can listen for signals using a signal watcher, C<signal> is the signal 164You can listen for signals using a signal watcher, C<signal> is the signal
165I<name> without any C<SIG> prefix. Multiple signals events can be clumped 165I<name> without any C<SIG> prefix. Multiple signals events can be clumped
166together into one callback invocation, and callbakc invocation might or 166together into one callback invocation, and callback invocation might or
167might not be asynchronous. 167might not be asynchronous.
168 168
169These watchers might use C<%SIG>, so programs overwriting those signals 169These watchers might use C<%SIG>, so programs overwriting those signals
170directly will likely not work correctly. 170directly will likely not work correctly.
171 171
247 247
248no warnings; 248no warnings;
249use strict; 249use strict;
250use Carp; 250use Carp;
251 251
252our $VERSION = '2.5'; 252our $VERSION = '2.51';
253our $MODEL; 253our $MODEL;
254 254
255our $AUTOLOAD; 255our $AUTOLOAD;
256our @ISA; 256our @ISA;
257 257
288 unless ($MODEL) { 288 unless ($MODEL) {
289 # try to load a model 289 # try to load a model
290 290
291 for (@REGISTRY, @models) { 291 for (@REGISTRY, @models) {
292 my ($package, $model) = @$_; 292 my ($package, $model) = @$_;
293 if (eval "require $package"
294 and ${"$package\::VERSION"} > 0
293 if (eval "require $model") { 295 and eval "require $model") {
294 $MODEL = $model; 296 $MODEL = $model;
295 warn "AnyEvent: autoprobed and loaded model '$model', using it.\n" if $verbose > 1; 297 warn "AnyEvent: autoprobed and loaded model '$model', using it.\n" if $verbose > 1;
296 last; 298 last;
297 } 299 }
298 } 300 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines