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

Comparing AnyEvent/lib/AnyEvent/Strict.pm (file contents):
Revision 1.43 by root, Fri Sep 5 22:17:26 2014 UTC vs.
Revision 1.44 by root, Sat Jul 7 14:03:05 2018 UTC

104 104
105 $fh = delete $arg{fh}; 105 $fh = delete $arg{fh};
106 106
107 if ($fh =~ /^\s*\d+\s*$/) { 107 if ($fh =~ /^\s*\d+\s*$/) {
108 $fd = $fh; 108 $fd = $fh;
109 $fh = AnyEvent::_dupfh $arg{poll}, $fh; 109 ($fh) = AnyEvent::_dupfh $arg{poll}, $fh;
110 } else { 110 } else {
111 defined eval { $fd = fileno $fh } 111 defined eval { $fd = fileno $fh }
112 or confess "AnyEvent->io called with illegal fh argument '$fh'"; 112 or confess "AnyEvent->io called with illegal fh argument '$fh'";
113 } 113 }
114 114

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines