|
|
| There's more than one way to do things | |
| PerlMonks |
File contents not updated properlyby balakrishnan (Monk) |
| on Dec 09, 2008 at 05:19 UTC ( [id://729089]=perlquestion: print w/replies, xml ) | Need Help?? |
|
balakrishnan has asked for the wisdom of the Perl Monks concerning the following question:
open(FH,">Sample"); $|=1; while(1) { print FH "This is for testing\n"; sleep 1; } This is to write some contents into the "Sample" file for every 1 second. After running this program, the file "Sample" is not updated. what is the correction, it requires? Thanks, balakrishnan
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||