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

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

by vsespb (Chaplain)
on Apr 28, 2010 at 13:32 UTC ( #837300=note: print w/replies, xml ) Need Help??


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

Anyway. I wish "fix" this somehow in perl distribution. I.e. fix perl documentation.

Write note that "select/can_read indeed can return nothing when you actually can read"

Do you think that would be possible ? How to do this ? Use http://rt.perl.org/perlbug/ ?

  • Comment on Re^2: poorly documented behaviour of readline() and IO::Select

Replies are listed 'Best First'.
Re^3: poorly documented behaviour of readline() and IO::Select
by ikegami (Pope) on Apr 28, 2010 at 23:33 UTC

    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.)

      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.

Re^3: poorly documented behaviour of readline() and IO::Select
by BrowserUk (Pope) on Apr 28, 2010 at 13:39 UTC

    Try typing 'perlbug' on your shell command line.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://837300]
help
Chatterbox?
[BarApp]: I need help accessing perl files. I need permission!!!
[Cosmic37]: I wish thee a peachy life and express gratitude for considering my pathetic questions
[erix]: record separator
[Cosmic37]: Permissions are interesting earthlings. Did nature determine who gives permission and who asks permission. Who was the first to get permission? Are you not related to them as one big earthling family?
[karlgoethebier]: Cojones! We need cojones!
[karlgoethebier]: Ouch! Permissions! We need permissions!

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2017-06-29 16:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (672 votes). Check out past polls.