Re: Unique Filename Generator

new topic     » topic index » view thread      » older message » newer message

c.k.lester wrote:
> 
> 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. :)

Actually, you might want to return {handle,name} so the file can be deleted
after use?

Regards,
Pete

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu