1. Re: Unique Filename Generator
- Posted by c.k.lester <euphoric at cklester.com> Apr 02, 2007
- 496 views
Pete Lomax wrote: > c.k.lester wrote: > > In my case, I am anticipating use in a CGI program, where potentially > > thousands of temp files could be required over the course of a second. > > Wishful thinking, yes, but not outside the realm of possibility. :D > In that case I think you really want to return a valid file handle, that you > have actually managed to open, rather than a string which happened not to > exist > a microsecond ago. I query my use of dir() over performance, but I'll query > your use of the same for concurrency reasons. Wow. Great idea. I'll have to make a few changes. :)