1. Re: Unique Filename Generator
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Apr 02, 2007
- 491 views
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. Regards, Pete