in reply to Check whether a file is open

It depends on what operating system you are on, on Linux for instance you can use Linux::Fuser.

/J\