I have a problem that continually causes me difficulties.
Some of the files that I write to with Perl can be opened by other applications.
I really want a way of finding out if the file is already open as I can then take
appropriate actions.
Some applications that I use can do this. For example, Excel will indicate a spreadsheet
is already open and an editor will not let me use a file that is open by Perl.
I keep on looking at the stat function thinking that this should give me the required informationbut I cannot see how!
Can anyone give me some clues about how to overcome the curse of the open file?