Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Non blocking read on a filehandleby Anonymous Monk |
on Nov 20, 2008 at 16:41 UTC ( [id://724919]=note: print w/replies, xml ) | Need Help?? |
> # I'm not sure the following is necessary? > return unless vec($rfd,fileno($fh),1); select() allows you to check for many file descriptors at once by adding each fd into the $rfd vector. The $rfd gets modified by select() to let you know which file descriptors are available. The second line of code here verifies that the file descriptor you asked about is one that's ready.
In Section
Seekers of Perl Wisdom
|
|