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 a command in perl to flush a file?


Thanks

Urs

to flush the contents, set at the top of your perl program.
$| = 1;

HTH
--
Ankur


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to