Urs Wagner wrote:
Hello
I have a problem on WinXP. In perl I want to read the tail of a file.
The file is written with another windows
program. If I am using a sleep(5) before of the read command I get the
new tail content. It seems the program
has longer to write it or it is buffered.
Is there
Ankur Gupta [AG], on Monday, January 31, 2005 at 19:30 (+0530) wrote
these comments:
AG> to flush the contents, set at the top of your perl program.
AG> $| = 1;
^ this will don't cache STDOUT, if you want flush to file, just do it
like this:
open FILE, ">file.txt" || die "Can't open... $!\n";
se
Urs Wagner <[EMAIL PROTECTED]> asked:
> I have a problem on WinXP. In perl I want to read the tail of a file.
> The file is written with another windows program. If I am
> using a sleep(5) before of the read command I get the new
> tail content. It seems the program has longer to write it or
>
- Original Message -
From: Thomas Bätzler <[EMAIL PROTECTED]>
Date: Monday, January 31, 2005 9:07 am
Subject: RE: flush function
> Urs Wagner <[EMAIL PROTECTED]> asked:
> > I have a problem on WinXP. In perl I want to read the tail of a
> file.
> > The