Help for this page
# FILE1 & FILE2 is a filehandle opened elsewhere. $read is a list of
# filehandles we are interested in reading
# (NOTE: $read=0 is very wrong)
vec($read, fileno(FILE1), 1) = 1; # Set the appropriate bit
vec($read, fileno(FILE2), 1) = 1; # And for another file...
my $nfound = select($read, undef, undef, undef);
# Does FILE1 have data waiting?
if (vec($read, fileno(FILE1), 1))
# ... do stuff ...
# Simple multiplexing package
# TCP listener socket
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (501 votes). Check out past polls.