Re: [perl #33963] read and readline opcodes don't mix

2005-01-29 Thread Leopold Toetsch
Matt Diephouse <[EMAIL PROTECTED]> wrote: > harmony:~/Projects/parrot ezekiel$ cat test.pir > .sub main @MAIN > $P0 = open "test.pir", "<" > $S0 = readline $P0 > print $S0 > $S1 = read $P0, 3 > print $S1 > print "\n" > .end > harmony:~/Projects/parrot ezekiel$ parrot

Re: [perl #33963] read and readline opcodes don't mix

2005-01-28 Thread Matt Diephouse
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 cha

Re: [perl #33963] read and readline opcodes don't mix

2005-01-28 Thread Leopold Toetsch
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(). leo

[perl #33963] read and readline opcodes don't mix

2005-01-27 Thread via RT
# New Ticket Created by Matt Diephouse # Please include the string: [perl #33963] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=33963 > harmony:~/Projects/parrot ezekiel$ cat test.pir .sub main @MAIN $P0 = open "tes