ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Event/Select.pm
(Generate patch)

Comparing Coro/Event/Select.pm (file contents):
Revision 1.5 by root, Tue Nov 29 12:36:18 2005 UTC vs.
Revision 1.6 by root, Mon Dec 12 17:49:07 2005 UTC

33use Coro; 33use Coro;
34use Coro::Event; 34use Coro::Event;
35 35
36use base Exporter::; 36use base Exporter::;
37 37
38our $VERSION = 1.5; 38our $VERSION = 1.51;
39our @EXPORT_OK = "select"; 39our @EXPORT_OK = "select";
40 40
41sub import { 41sub import {
42 my $pkg = shift; 42 my $pkg = shift;
43 if (@_) { 43 if (@_) {
46 $pkg->export ("CORE::GLOBAL", "select"); 46 $pkg->export ("CORE::GLOBAL", "select");
47 } 47 }
48} 48}
49 49
50sub select(;*$$$) { # not the correct prototype, but well... :() 50sub select(;*$$$) { # not the correct prototype, but well... :()
51 warn "select<@_>\n";#d#
52 if (@_ == 0) { 51 if (@_ == 0) {
53 return CORE::select; 52 return CORE::select;
54 } elsif (@_ == 1) { 53 } elsif (@_ == 1) {
55 return CORE::select $_[0]; 54 return CORE::select $_[0];
56 } elsif (defined $_[3] && !$_[3]) { 55 } elsif (defined $_[3] && !$_[3]) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines