Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: timeouts and errors with IO::Select:: and CORE:: select (was Re: Msg.pm extended with "workproc". IO::Select docs)

by ikegami (Patriarch)
on Oct 12, 2009 at 17:13 UTC ( [id://800756]=note: print w/replies, xml ) Need Help??


in reply to Re: timeouts and errors with IO::Select:: and CORE:: select (was Re: Msg.pm extended with "workproc". IO::Select docs)
in thread Msg.pm extended with "workproc". IO::Select docs

IO::Select::select is documented to return an empty list (zero values) on error. It also returns this on timeout.

And in the case of the TIMEOUT, they will always all be undefined?

Assigning an empty list to a variable will undefine it, so yes.

sets $no_error true if any of the element in the list are defined.

Yes, but not directly. $no_error is set to the number of values returned by IO::Select::select. Since IO::Select::select returns either an empty list or three references, the vars are only undefined when $no_error is false, and they're always undefined when $no_error is false.

  • Comment on Re^2: timeouts and errors with IO::Select:: and CORE:: select (was Re: Msg.pm extended with "workproc". IO::Select docs)
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://800756]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 15:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found