This must be easy, but my brain is too tired to think of it. I have the following code
open(LOG,">>$logfile") || die "error opening $logfile for append: $!\n +";
When I run my program from the first terminal, it opens the file for append as expected (I can tell because of later prints to LOG). However, when I start another instance of the same program from a different window, I don't get the error message. How can two instances of perl have the same file open for exclusive append? What am I missing?
In reply to Exclusive open for append by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |