"$Bill Luebkert" wrote:
> 
> Mark Zvolanek wrote:
> >
> > Hi Carl,
> > I am sorry I don't understand.
> >
> > I was talking about $| variable and not $!.
> >
> > I am trying to figure out why my perl code
> > is buffering the (STDOUT) output of the executable
> > even though I have set the variable $| to 1.
> > Whereas when I execute the executable at
> > the command prompt its output is not buffered.
> >
> > You also said:  The PIPE handle is an input handle.
> > Why is it then my perl code below produces output
> > as passed to it by the executable.
> > ...
> > while (<PIPE>){
> >         print;
> > }
> > ...
> 
> A new little test shows some insight.  Maybe buffering isn't used when
> writing to the console (vs a file/pipe):
> 
> Driver:
> 

<snip to last test block>

> # this should print 1 line per second

Whoops, this last one should wait 10 seconds and then print all 10 lines
if buffering is on, but doesn't when going direct to console.

-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles   http://www.wgn.net/~dbe/
  / ) /--<  o // //      Mailto:[EMAIL PROTECTED]   http://dbecoll.webjump.com/
-/-' /___/_<_</_</_    http://www.freeyellow.com/members/dbecoll/
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to