Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by Fletch (Chancellor)
on Oct 23, 2020 at 02:04 UTC ( #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 (Pope) 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
Node Status?
node history
Node Type: note [id://11123065]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2020-11-26 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?