From: matz@... (Yukihiro Matsumoto) Date: 2002-10-04T03:53:30+09:00 Subject: Re: Ruby vec() command equivalent? Hi, In message "Ruby vec() command equivalent?" on 02/10/04, Andrew Cowan writes: |In perl I can do this: | |vec(expr, offset, bits) | |which is needed in non-blocking socket operations for data read and write |selects. | |Is there a Ruby equivalent for this? |If not, anyone have a workaround for what vec() does? You can use IO::select([fd1, fd2, fd3], [fd4, fd5], nil, timeout) no vec() is needed. But if you really need vec() equivalent, how about Robert Feldt's BitVector? See . matz.