in reply to RE: (atl: about exceptions) RE: RE: race condition? - flock and $SIG{ALRM}
in thread race condition? - flock and $SIG{ALRM}

Just have the filehandle be localized or in a lexical scope. Then it will close on its own when it notices that you exited the scope it was opened in. :-)
  • Comment on RE: RE: (atl: about exceptions) RE: RE: race condition? - flock and $SIG{ALRM}