What does your call to your OpenFile() sub look like?  Since OpenFile
returns a copy of the file handle, the caller of that function will also
need to store it in a lexical variable, too, but you didn't include that
part of your program.

Also, where and how did you declare and define variables such as
"$strOpenChar" and "$strFileName" used in OpenFile()?


----- Original Message ----- From: Justin Luster
To: [EMAIL PROTECTED]
Sent: Friday, April 13, 2007 1:50 PM
Subject: Lock Files - File is permanently locked

Hi,

I've read through some of the documentation on perl.apache.org about file
locking and mod_perl.  I believe that I'm following the advice there but I'm
still having problems.
...

Does anyone know what might be happening?  We are only using
Apache::Registry in this instance.  I can't see how a lexically scoped file
handle that is being locked is not being unlocked once the process ends.

Reply via email to