On Fri, 28 Jan 2005 09:53:01 +0100, Leopold Toetsch <[EMAIL PROTECTED]> wrote:
> Matt Diephouse <[EMAIL PROTECTED]> wrote:
> >     $S0 = readline $P0
> >     print $S0
> >     $S1 = read $P0, 3
> 
> Mixing readline and read isn't really a good idea. Did you try to turn
> on/off buffering before changing read modes? See PIO.setbuf().

Regardless of whether or not it's a good idea, the documentation for
read says it should work:

    "Read up to N bytes from standard input stream If stream is
linebuffered, will return at EOL, for files it will read
MIN(MAX(avail, N), 65535) bytes. Warning: This is a quick hack."

Unless I'm reading that incorrectly?

-- 
matt diephouse
http://matt.diephouse.com

Reply via email to