greya
Programmer
- Aug 24, 2008
- 2
I have a script that is supposed to write output to files. It usually works fine.
Sometimes I run it and it would not write a single line to a file it is supposed to write to. Later, it would spontaneously resume working normally. E.g.
open (RESULTS, '>results.txt');
print RESULTS "BLAH";
1. always creates an empty file
2. sometimes writes "BLAH" into it, and sometimes doesn't
I tried deleting the previously created file with the same name from the directory, it did not help.
Mac OSX 10.4.11
Perl v.5.8.6
Do you have any suggestions on what can be causing this and how to fix it?
Thank you.
Sometimes I run it and it would not write a single line to a file it is supposed to write to. Later, it would spontaneously resume working normally. E.g.
open (RESULTS, '>results.txt');
print RESULTS "BLAH";
1. always creates an empty file
2. sometimes writes "BLAH" into it, and sometimes doesn't
I tried deleting the previously created file with the same name from the directory, it did not help.
Mac OSX 10.4.11
Perl v.5.8.6
Do you have any suggestions on what can be causing this and how to fix it?
Thank you.