Re: tempfile

2004-04-06 Thread WC -Sx- Jones
Bob Showalter wrote: WC -Sx- Jones wrote: Christian Stalp wrote: Hello together, I want to create a tempfile via the function tempfile. But I want a certain path and name for the file. The option DIR and SUFFIX and s.o. is clear to me but how can I set the name of the file? For Exam: temp_file.l

Re: tempfile

2004-04-06 Thread Wiggins d Anconia
> > > 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

Re: tempfile

2004-04-06 Thread Christian Stalp
> 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 t

RE: tempfile

2004-04-06 Thread Bob Showalter
WC -Sx- Jones wrote: > Christian Stalp wrote: > > Hello together, > > I want to create a tempfile via the function tempfile. > > But I want a certain path and name for the file. > > The option DIR and SUFFIX and s.o. is clear to me but how can I > > set the name of the file? For Exam: temp_file.lo

RE: tempfile

2004-04-06 Thread Bob Showalter
Christian Stalp wrote: > Hello together, > I want to create a tempfile via the function tempfile. > But I want a certain path and name for the file. > The option DIR and SUFFIX and s.o. is clear to me but how can I > set the name of the file? For Exam: temp_file.lock or somethink like > that!? T

Re: tempfile

2004-04-06 Thread WC -Sx- Jones
Christian Stalp wrote: Hello together, I want to create a tempfile via the function tempfile. But I want a certain path and name for the file. The option DIR and SUFFIX and s.o. is clear to me but how can I set the name of the file? For Exam: temp_file.lock or somethink like that!? CPAN is your f