http://www.perlmonks.org?node_id=508158


in reply to Select and file handler

Looks like that this is not cross-platform. With Windows XP, the OP's code does return -1.

A note that could be related: on Windows, select() is implemented as part of Windows Socket 2. Most likely, select() only works with socket on Windows.

Replies are listed 'Best First'.
Re^2: Select and file handler
by ikegami (Patriarch) on Nov 14, 2005 at 13:57 UTC
    select only works on sockets in Win32. Update: I guess you said that already. I apparently didn't read your entire post. Well, take it as confirmation, then.