Midnite has asked for the wisdom of the Perl Monks concerning the following question:
I have a question that maybe someone can help me with. I am writing/creating a file on a unix server, and I check to see if the file exists before I create it. If it does create a new file, I want to send the previous file via e-mail to a specific person.
I currently have it working for the previous day, I use the date for the filename. But, what if the day before is not the previous file? I want to code something that will either, check the date on the file, or find the previous file, whether it be the day before, i.e. 051104.txt to 051204.txt or some day distant, i.e. 050804.txt to 051204.txt.
I hope I am explaining myself correctly, feel free to ask as many questions you can if i have explained myself well enough.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Find a file
by dave_the_m (Monsignor) on May 11, 2004 at 21:33 UTC | |
|
Re: Find a file
by shemp (Deacon) on May 11, 2004 at 21:22 UTC | |
|
Re: Find a file
by pelagic (Priest) on May 11, 2004 at 21:24 UTC | |
|
Re: Find a file
by TilRMan (Friar) on May 12, 2004 at 02:21 UTC |