while(@bits = $selectFD->can_read) #### select(undef, undef, undef, 0.1); #### @bits = $selectFD->can_read(30); if (@bits == 0) { # we timed out } else { for (@bits) { blah blah blah } }
## select(undef, undef, undef, 0.1); ##
## @bits = $selectFD->can_read(30); if (@bits == 0) { # we timed out } else { for (@bits) { blah blah blah } }