develooper Front page | perl.perl5.porters | Postings from December 2017

Re: [perl #120982] IO::Select->select() returns empty list even ifthere were no errors

From:
Zefram
Date:
December 16, 2017 04:05
Subject:
Re: [perl #120982] IO::Select->select() returns empty list even ifthere were no errors
Message ID:
20171216040541.GJ25404@fysh.org
Oleg G wrote:
>So if select() returns 0 (0 file handles ready) IO::Select determines this
>as error and returns empty list and IO::Select user can't distinguish error
>from the fact that there is no ready file handles yet.

Actually they can be distinguished by use of $!.  The
documentation was recently extended to describe this in commit
bc3331071e1ccbdab715397718bb00282f5c5e88.  This ticket can be closed.

-zefram



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About