in reply to Timestamp as a Filename Collection

Why not just do something like $filename = time() . $$;, or something along those lines? Just curious, since time() returns the number of seconds since the epoch, and unless you were on a system that could not do 17+ character filenames...

Replies are listed 'Best First'.
Re: Re: Timestamp as a Filename Collection
by hiseldl (Priest) on Sep 11, 2002 at 03:55 UTC
    The trick is that I wanted something immediately understandable with all my filenames the same length, excluding the pid. :)

    --
    hiseldl
    "Act better than you feel"

      True, but the current results of time() is on the order of 10e9 seconds, and being 32-bit integer, won't go much larger. But I do understand the part about being understandable. If the contents of the directory are understood anyway, though...