pigeonjp has asked for the wisdom of the Perl Monks concerning the following question:
i need to be able to create a file everyday that will have a naming convention so that it will be a timestamp.txt for example 25-may-2001 14:45:34.txt
i've used the following code:
$filename = $timestamp.".txt"; print $filename; sleep 5; open (TEMPFILE, ">$filename");
i used the print and sleep to ensure that $filename was indeed the correct name and it is. the only problem is that the file is not created. i am operating on win2000 and have adminstrator rights. HELP PLEASE
thanks again for your prompt responses!! perlmonks rule!!
Edited by footpad, 26 Jun 2001 - 09:19 am (PDT)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: still can't create a file using a variable
by lhoward (Vicar) on Jun 25, 2001 at 22:25 UTC | |
|
Re: still can't create a file using a variable
by bikeNomad (Priest) on Jun 25, 2001 at 22:29 UTC | |
by particle (Vicar) on Jun 25, 2001 at 23:09 UTC | |
|
Re: still can't create a file using a variable
by MadraghRua (Vicar) on Jun 26, 2001 at 03:25 UTC |