Should be:open SELF, "< $0" or die ...;
Due to the fact that some OS's won't allow an exclusive lock on a file that has been opened for read only.open SELF, "+< $0" or die ...;
-Nitrox
In reply to Re: File Locking Tricks and Traps
by Nitrox
in thread File Locking Tricks and Traps
by Dominus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |