Given the name of a file, how can I determine if the file is currently opened or in-use? (I am talking about files rather than Perl file handles.)
Please note that I am looking for a general-purpose Perl solution rather than an operating system-specific one. At a minimum, I would like something that works both on Windows and GNU/Linux-based systems.