fileno - return file descriptor from filehandle
fileno FILEHANDLE
Returns the file descriptor for a filehandle. This is useful for constructing bitmaps for select(). If FILEHANDLE is an expression, the value is taken as the name of the filehandle.