gri6507 has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Exclusive open for append
by Aristotle (Chancellor) on Nov 18, 2005 at 16:13 UTC | |
by gri6507 (Deacon) on Nov 18, 2005 at 16:35 UTC | |
|
Re: Exclusive open for append
by jeffa (Bishop) on Nov 18, 2005 at 16:15 UTC | |
|
Re: Exclusive open for append
by Perl Mouse (Chaplain) on Nov 18, 2005 at 16:16 UTC | |
by tmoertel (Chaplain) on Nov 18, 2005 at 18:53 UTC |