in reply to Perl Permissions

Is it possible that earlier in the code you did an 'open' on the file and now you are getting 'Permission denied' because you did not 'close' the file? I was getting that message for a 'rename' I was doing for lack of closing the file properly....