in reply to Re: File Locking
in thread File Locking

OK, what if I have do an unlink on the file from another Perl program instead?

Replies are listed 'Best First'.
Re: Re: Re: File Locking
by perlplexer (Hermit) on Apr 23, 2003 at 15:31 UTC
    Then that "another Perl program" first needs to check whether the file is locked or not, and unlink() or truncate() (if appropriate) it only if it's not locked.

    --perlplexer