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

Comparing AnyEvent/eg/handle (file contents):
Revision 1.1 by elmex, Thu May 15 07:51:25 2008 UTC vs.
Revision 1.2 by elmex, Thu May 15 08:37:55 2008 UTC

11 on_eof => sub { $cv->broadcast } 11 on_eof => sub { $cv->broadcast }
12 ); 12 );
13 13
14$ae_fh->push_read_line (sub { 14$ae_fh->push_read_line (sub {
15 my ($ae_fh, $line) = @_; 15 my ($ae_fh, $line) = @_;
16 chomp $line;
17 print "Got line [$line]\n"; 16 print "Got line [$line]\n";
18 17
19 $ae_fh->push_read (sub { 18 $ae_fh->push_read (sub {
20 my ($ae_fh) = @_; 19 my ($ae_fh) = @_;
21 print "Got additional data:[\n".$ae_fh->rbuf."]\n"; 20 print "Got additional data:[\n".$ae_fh->rbuf."]\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines