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

Re^3: poorly documented behaviour of readline() and IO::Select

by ikegami (Patriarch)
on Apr 28, 2010 at 23:33 UTC ( [id://837418]=note: print w/replies, xml ) Need Help??


in reply to Re^2: poorly documented behaviour of readline() and IO::Select
in thread poorly documented behaviour of readline() and IO::Select

Currently, the documentation for select says

WARNING: One should not attempt to mix buffered I/O (like read or <FH>) with select, except as permitted by POSIX, and even then only on POSIX systems. You have to use sysread instead.

This should be present in the documentation for IO::Select as well.

(I wonder what exceptions POSIX makes, and if they are still applicable to Perl.)

Replies are listed 'Best First'.
Re^4: poorly documented behaviour of readline() and IO::Select
by vsespb (Chaplain) on Apr 29, 2010 at 14:17 UTC
    yes, it does not seem to present in IO::Select. also as I told above eof() cant be used too!
      The following builtins perform buffered reading:

      readpipe (aka backticks) probably does as well, but it's not relevant here since it doesn't operate on a file handle.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-20 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found