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?