ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/eg/event
(Generate patch)

Comparing Coro/eg/event (file contents):
Revision 1.9 by root, Sun Apr 14 01:18:38 2002 UTC vs.
Revision 1.11 by root, Sat Apr 14 15:06:06 2007 UTC

1#!/usr/bin/perl 1#!/usr/bin/perl
2 2
3# this crap is an asynchroneous finger client. it's rather idiotic ;) 3# this crap is an asynchronous finger client. it's rather idiotic ;)
4 4
5use Coro; 5use Coro;
6use Coro::Event; 6use Coro::Event;
7use Coro::Socket; 7use Coro::Socket;
8 8
50 $w->next; 50 $w->next;
51 print "\e7\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C <time ",time,"> \e8"; 51 print "\e7\e[C\e[C\e[C\e[C\e[C\e[C\e[C\e[C <time ",time,"> \e8";
52 }; 52 };
53} 53}
54 54
55cede; # make sure the watchers are installed
55print "unlooped with value: ",loop(),"\n"; 56print "unlooped with value: ",loop(),"\n";
56 57

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines