Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: select RBITS,WBITS,EBITS,TIMEOUT. The meaning of all the *BITS

by Fletch (Bishop)
on Oct 23, 2020 at 02:04 UTC ( [id://11123065]=note: print w/replies, xml ) Need Help??


in reply to select RBITS,WBITS,EBITS,TIMEOUT. The meaning of all the *BITS

EBITS is for error filehandles. The select builtin is a thin layer over the underlying select(2) system call so familiarity with that can help (see your OS' manual pages or a tome like e.g. Stevens, Advanced Programming in the UNIX Environment).

Unless you've got a burning desire to program that close to the metal as it were you may be better served using IO::Select (or stepping even further back and using an event loop like Mojo::IOLoop, AnyEvent, or POE).

Edit: And I just bothered to pull my copy off the shelf and skim and I'm a bit vague still. That's filehandles which you want to know if/when they have errors or exception conditions present.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: select RBITS,WBITS,EBITS,TIMEOUT. The meaning of all the *BITS
by Anonymous Monk on Oct 23, 2020 at 02:46 UTC
Re^2: select RBITS,WBITS,EBITS,TIMEOUT. The meaning of all the *BITS
by ikegami (Patriarch) on Oct 25, 2020 at 11:16 UTC

    EBITS is for error filehandles.

    No. What does that even mean? It's used to specify the handles to monitor for exceptional conditions. See my answer for details.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found