in reply to Getting byte stream input from STDIN

You don't say what STDIN is connected to. If it's a terminal, you're suffering from the standard behavior of line editing. You may (depending on OS) be able to turn off cooked/editing mode. To do this, you could use something like Term::ReadKey that does this for you.

As far as STDOUT appearing in line mode, you haven't turned off buffering there, have you? If you have, prints should appear byte by byte.

  • Comment on Re: Getting byte stream input from STDIN

Replies are listed 'Best First'.
Re: Re: Getting byte stream input from STDIN
by nysus (Parson) on Jul 27, 2001 at 00:05 UTC
    Yes, forgot to mention that autoflushing on STDOUT is enabled as well. I'll look into Term::ReadKey...the pod for getc mentions this, too. Thanks.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop";
    $nysus = $PM . $MCF;
    Click here if you love Perl Monks