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

Comparing AnyEvent/lib/AnyEvent/Intro.pod (file contents):
Revision 1.19 by root, Wed Jul 9 11:53:40 2008 UTC vs.
Revision 1.20 by root, Mon Nov 3 21:38:55 2008 UTC

264 264
265 my $name_ready = AnyEvent->condvar; 265 my $name_ready = AnyEvent->condvar;
266 266
267 my $wait_for_input = AnyEvent->io ( 267 my $wait_for_input = AnyEvent->io (
268 fh => \*STDIN, poll => "r", 268 fh => \*STDIN, poll => "r",
269 cb => sub { $name_ready->send (scalar = <STDIN>) } 269 cb => sub { $name_ready->send (scalar <STDIN>) }
270 ); 270 );
271 271
272 # do something else here 272 # do something else here
273 273
274 # now wait and fetch the name 274 # now wait and fetch the name

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines