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
Give me a lever long enough ...
Eppur si muove
Mr. Watson – Come here – I want you
Mary had a little lamb
That's one small step for a man ...
SCE to AUX
I think I'll stop here
Results (254 votes). Check out past polls.