Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: File Locking Tricks and Traps

by Nitrox (Chaplain)
on Mar 11, 2003 at 16:42 UTC ( #242080=note: print w/replies, xml ) Need Help??


in reply to File Locking Tricks and Traps

On slide 6 this line:
open SELF, "< $0" or die ...;
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.

-Nitrox

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://242080]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2023-03-28 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (66 votes). Check out past polls.

    Notices?