if (-s $output_file) {
You shouldn't use file test operators to determine whether or nor to open files as there is no guarantee that the test will be valid by the time you open the file.
File tests should be done AFTER you obtain a RW lock.
This is *supposed* to prevent other system processes from over-writing/truncating/changing it.
When you do test - group relevant tests together so that the whole process is quick -- this way if there are other processes waiting application deadlock doesn't occur.
-- _Sx_ http://youve-reached-the.endoftheinternet.org/ _____ perldoc -qa.a | perl -lpe '($_)=m("(.*)")' | grep Martian
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>