AFAIR, open FILE, ">$some_file" will fail if some other process already has the file open for writing, thus you could eval the call (to open) and proceed based on the caught exception - if any.
A user level that continues to overstate my experience :-))