in reply to Re^2: Emulating UNIX 'top' on AIX
in thread Emulating UNIX 'top' on AIX

No. <FILE>, getc, read and sysread all block until a newline is read (even if they only return one character at a time). That's why I mentioned Term::ReadKey.

Well, maybe you can do something with PerlIO. I don't know anything about that.

Replies are listed 'Best First'.
Re^4: Emulating UNIX 'top' on AIX
by Transient (Hermit) on May 02, 2005 at 16:18 UTC
    the Perl getc docs have references to system calls using stty icanon which seem to emulate reading character by character. While not the solution I would most like to use, it does serve its purpose :)