in reply to Re: Tail, whiles and buffers ?
in thread Tail, whiles and buffers ?

I think I found the answer...I was using a deprecated version of auto flush I guess. This seems to work:
use IO::Handle; open(WRITE, ">>C:\\File\\test.dat"); WRITE->autoflush(1);

Replies are listed 'Best First'.
Re^3: Tail, whiles and buffers ?
by davido (Cardinal) on Oct 19, 2006 at 17:43 UTC

    That's strange, your original post said nothing about using IO::Handle. So your example code was irrelevant. Nice.


    Dave

      Sorry about that Dave, It wasn't in my original post but after more research I tried it and it seemed to work.
      sorry Dave...my original post said I tried using "$|++", hence the deprecated version of autoflush, so I did some more research and found that using the IO module works.

        No problem. I was just perplexed as to how the design changed from what I was considering.


        Dave

        sorry Dave...my original post said I tried using "$|++", hence the deprecated version of autoflush, so I did some more research and found that using the IO module works.

        I didn't know that the use of $| is technically deprecated. At least, perldoc perlvar doesn't mention it. Indeed it is peculiar in that it depends on the currently selected handle, and some care is needed in using it, so that IO::Handle provides a more convenient interface in many circumstances.