> Did you find a way to set the filename to "temp_file.lock"? The OP has
> obviously RTFM.

Is no problem now with:
open LOCK_FH , ">$file_name"  or die "cannot create hanlde!\n";
.
.
.
close LOCK_FH;

unlink ( $file_name ) or warn "cannot delete !\n";

I can do what I want to do. I just thought that tempfile can do all this in 
one step. As you sayed, my file has the purpose to lock other instances of 
the perl-script so only one can run at a time. 

Thank you

  Gruss Christian

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to