Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Non blocking read on a filehandle

by Gloom (Monk)
on Jan 30, 2001 at 19:31 UTC ( #55245=note: print w/replies, xml ) Need Help??

in reply to Non blocking read on a filehandle

Try to use select with a small timeout value.
Maybe you can use also the perl implementation of ioctl that allow you to do non-blocking i/o ( among many other things )

Update :

It's also possible to handle the "IO" signal by linking some function to $SIG{IO} sighandler, and play with the filehandle's flags with fcntl

No more details : searching is the way of understanding...

Hope this help :)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2022-01-22 16:54 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (63 votes). Check out past polls.