aseidas has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks, I am working on a project where I will have several different work files that I will be using to do different things, convert, fax, email etc.. I am trying to come up with a way to name the work files so they will not overwrite one another, I am going to create a different dir for each task where the work files will be stored, I am going to store the work files for about 1 year, for future use. This is why it is important that they do not overwrite one another. I have thought of using Time::localtime to grab the julian date to do something like julian.process#.fileextension.
Does anyone have any suggestions?
As always thanks in advance !
-Aseidas-

Replies are listed 'Best First'.
Re: naming work files
by Snuggle (Friar) on Jul 03, 2002 at 15:22 UTC
    Whenever I specify the name format for a work file, I usually go for the lowest common denominator, in this case the Windoze file naming 8.3 format. This ensures that if the working dirs ever get read as a mapped share, or the file gets transfered to a windoze machine there will be less renaming confusion.

    Anyway, no drug, not even alcohol, causes the fundamental ills of society. If we're looking for the source of our troubles, we shouldn't test people for drugs, we should test them for stupidity, ignorance, greed and love of power.

    --P. J. O'Rourke
Re: naming work files
by flounder99 (Friar) on Jul 03, 2002 at 15:33 UTC
    Here is an example I came up with in this thread for sub-second log file names. Feel free to steal cut 'n paste .

    --

    flounder