On Fri, Oct 05, 2001 at 05:34:57PM +0100, Robin Houston wrote: > On Fri, Oct 05, 2001 at 05:22:24PM +0100, Nicholas Clark wrote: > > what's the best way to find the set bits in the output from select? > > I really didn't want to do a brute force loop over every bit in the vec. > > [...] > > is there an "official" cunning recipe for this? > > IO::Select does a brute force loop, which makes me think that there > probably isn't.
Or if I actually benchmark it, it will turn out to be no different. > Why on earth are you calling the select() routine manually anyway? Because I can (because I'm a masochist?) > IO::Select actually has a usable interface... True, but this is a CGI (political reasons beyond my control), and IO::* isn't the smallest fastest thing to load. Nicholas Clark