in reply to Is it possible to generate unique temporary filenames using hostname/process id?

As an alternative, you could use Data::UUID (or the older UUID module]:
use Data::UUID; my $uuid_gen = Data::UUID->new(); ... my $unique = $uuid_gen->create_str();

The generated strings are 68 characters long, containing letters, numbers and hyphens, and essentially guaranteed to be unique.

  • Comment on Re: Is it possible to generate unique temporary filenames using hostname/process id?
  • Download Code